Questions tagged as 'cakephp-2'

1
answer

How to add an array with itself more data?

It's the following galera. I have a for and inside it I have an array ($ smses) that receives ($ smses = $ smses + 'the data from my application'). The problem is that this does not work, I would like to know how I add the new data from the new...
asked by 02.02.2015 / 21:09
1
answer

How do I get the return data of a function via ajax?

I have an ajax in my view add that does an asynchronous request in an action test in my controller, in this function I need to return the $ balance variable for my view add, I would like to know how I can send this data and how they arrive in my...
asked by 06.04.2015 / 18:52
1
answer

MySQL Relationships: Query Problem

I have the following scenario I need to search all consulta_tipos with consulta_itens aligned and check the ones in cliente_consulta_tipo and cliente_consulta_itens , in addition I need to search the fornec...
asked by 04.02.2016 / 20:44
2
answers

How to create view function?

I'm creating a function in controller UsersController , this function is for users who forget the password. When I try to open view , it returns an error that the function does not exist. The structure looks like this: view...
asked by 23.12.2015 / 04:55
2
answers

Search for birthdays of the month

I would like to make a condition where you only display the birthdays of the month. My controller looks like this: public function index() { $ultimoDia = date("t", mktime(0,0,0,date('m'),'01',date('Y'))); $condicoes['order'] = array('F...
asked by 18.09.2015 / 14:39
1
answer

How to make a JOIN using find ()?

I'm trying to make a join of tables using cakephp's find (). I have 3 tables, they are: users, pessoas e matriculas . In the users table I have a foreign key for the pessoas table and on the matriculas tbm table I have...
asked by 24.08.2015 / 23:58
2
answers

CAKEPHP: conditions with AND

I have a question when I search. The conditions item in my current query looks like this: 'conditions'=>array( 'Produto.publicado'=>1, 'Produto.titulo LIKE'=>"%$kw%", 'TagsProduto.tag_id'=>$tags ), However, $ tags...
asked by 09.03.2015 / 18:20
2
answers

Generate PDF from filters in CakePHP

In a management page it is possible to filter by Company, User and between two dates. How to generate a PDF when the user clicks the button based on the filters used or from the database table?     
asked by 19.01.2015 / 14:40
1
answer

Problems relating CakePhp Templates

This is the Model User class User extends AppModel { public $name = 'User'; public $useTable = 'users'; public $displayField = 'name'; public $belongsTo = array( 'Role' => array( 'className' => 'Role', 'f...
asked by 04.04.2014 / 16:09
1
answer

Default route controller / action and links to css / js do not work cakephp

After extracting cake 2.5.2 to the directory (Linux) /var/www/html/teste when accessing the url http://localhost/teste it loads the content correctly from the controller pages and action display conforms to the file...
asked by 02.07.2014 / 16:21