0 answers
1 vote
Custom SQL Query in pagination?
Hello, I would like to ask.
Is possible remake this query into paginate?:
SELECT * FROM tb_messages WHERE tb_messages.message_status = 1 OR tb_messages.message_status = 2 AND tb_messages.to_id = $this->Auth->user('ID')
I am newbiee in CakePHP...
2 answers
1 vote
cake bake will not connect to mysql
YO,
Doing the Apress "From Novice to Professional" and have run into a snag. I am attempting to cake bake for the first time. PATH is set correctly, blog app is working just dandy, and databases are available in phpmyadmin (doing this on MAMP)....
2 answers
1 vote
Cake Bake Model errors (Cakephp 1.3.1)
- cakephp 1.3.1 / windows XP SP3 / PHP 5.3.2 / Mysql 5.1.44 / Apache 2.2.15
- Basic setup done... everything ok (salt,cypher, database)
- File and file.test modified to fix unserialize error.
- database test created with table Posts.
- Project...
0 answers
1 vote
using form helpers when a controller uses a model from another controller
I have a controller using a model from a different controller. I use $uses to bring in the model to my controller. So far so good. In my edit or add view I can use the form helper to create the form using the model from the other controller but...
1 answer
1 vote
Hi,I am new to cake php and having problem in data insertion.
I have a text area which accepts multiple numbers separated by a new line.I have done this type of functionality earlier in php using the explode() function.But over here in cake php I am not able to use the explode function properly. here is my...
1 answer
1 vote
find-condition with belongsTo-association
Hi,
I have a model "Order" with a hasMany association to "Ticket". "Ticket" has a belongsTo association to "Event". Now I'm trying to get all Orders which have Tickets with the Event.id 2. I tried it this way: $orders = $this-Order-find('all',...
1 answer
1 vote
How do I create routes from database?
hi there,
I have (imo) a slightly tricky routing issue.
I have a store setup with various artists and the artists have their own mini stores with custom layout etc...
Now I want to route the following;
1 answer
1 vote
How is admin access usefull?
Hi
I would like to know how to make use of admin access in cakephp application.How is it useful?Where can I apply it.
1 answer
1 vote
'admin' => true vs 'prefix' => admin
Hey I'm setting up a route for /admin in my app, I was wondering what is the difference between setting admin = true as opposed to 'prefix' = 'admin'. It seems as though 'prefix' = 'admin' is the one that sets my functions to admin_view, etc, but...
0 answers
1 vote
__() and paginator->sort()
Can anyone think of a reason why the "__()" string replacement/localization function does not work with $paginator-sort() ?
When I try to use the replacement function, the text replacement works, but the replacement string is placed outside of the...
How does CakePHP Questions work?
CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!
After you ask your question you just need to wait until you have got some answers and pick the correct answer.
Other users might help you by finding the right answer by voting and giving comments.
