0 answers
0 votes
Finished code available?
Trying to get through the tutorials. Pretty clear until I get to "10.2.4 Acts As a Requester". When I go to the ../user/add I get "Parse error: syntax error, unexpected T_VAR in..." I'd like to check what I've done against a finished copy. Where...
2 answers
0 votes
Auth Component Check User Before Login
I want to check if a user is banned or not before logging him in. I tried to use isAuthorized() for this but it allows the user to logging and only after that denies permission to the authorized actions. Where can I check this to prevent the user...
0 answers
0 votes
Why does baked add view not use the default layout?
When I do
cake bake all
the index view uses the default layout I defined, but the add views do not use the default layout. Why is that? I cannot see anything in the baked controller or views that might explain the difference.
0 answers
0 votes
How do I get relational data from bootstrapped models?
Hi all. I am new to CakePHP and I am building a CMS with the following folder structure:
/public_html/cake/
/public_html/admin/
/public_html/frontend/
index.php
I have setup the bootstrap.php file in the frontend to look for models in the admin app. ...
3 answers
0 votes
Set Flash not showing in 1.3
Hi all
I am new to CakePHP.I'm not getting customised setFlash message in 1.3 please help me.
This is my flash.ctp content in views/layouts
<?php echo "
This is my controller content
<?php
class DesignationsController extends...
2 answers
0 votes
How to write data to datasource / database without using a form?
I am new to CakePHP. Completed the Blog tutorial and started working on my own litle application now.
As part of the application I retrieving a Twitter search resultset using a Twitter datasource, model, controller and view. Now I want to save the...
1 answer
0 votes
Using Google Landing Page Optimizer for A/B with CakePHP
Has anyone successfully used Google Landing Page Optimizer with Cake? If not, is there a cake-specific landing page optimizer with metrics?
I am very new to it but I want to test out variations of my landing page but with cake there is only...
3 answers
0 votes
How can I display variable from controller in layout
Hi there,
I made a settings controller which contains sitename, description, keywords. I want to get those values and display in main layout as variables for example:
<?php echo $sitename; ?
or a better way for me (sth like wordpress -...
1 answer
0 votes
Modifing a db connection "on the fly"
Hello everyone!
I have a question that I didn't find an answer after a day of google-search.....
I have to modify a db connection to point to a sd specific for the company in session
For example
$this->archia = array(
'driver' =>... 2 answers
0 votes
How can i set a variable in the header?
Hi,
I have the default layout like this:
<html>
element->(header)
content
</html>
How can i set a variable in the header?
I want to make a find and display the results in header.
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.
