I'm new to the MVC pattern but have been trying to grasp it, for example by reading the documentation for the CakePHP framework that I want to try out. However, now I have stumbled upon a scenario that I'm not really sure how to handle.
The web site I'm working on consists of nine fixed pages, that is, there will never exist any other p...
Hi,
I have problem with cakephp's Session->write method.
If I set a value like $_SESSION['..'] i'm able to read it back. But if I use the write method it's not working.
My problem is same as here: http://www.nabble.com/Session-problem-td16684956.html
The same code was working in windows but it's not working after I moved to linux.
...
This is my form: I want to make sure that AT LEAST one of the name/email pairs are filled in, so I'm working on a custom validation rule in my model.
I originally thought it would a simple case of making the first name/email pair mandatory, but this doesn't cover the other fields if someone fills in the third one for example, and omit...
how to remove the index.php from the cakephp url? In order to access my forms folder, I have to give the url : http://localhost/cake_1_2/index.php/forms.
how do i remove that index.php?
I removed the .htaccess from the folders as mentioned in core.php and uncommented the App.baseUrl line. Yet,I'm not able to view the page without the i...
Hi,
i am using a CakePHP form Creator
echo $form->input($r['Attribute']['label'], array('id'=>$r['Attribute']['id'],'name'=>$r['Attribute']['label'],'type'=>'text','style' => 'width:30px'));
echo $form->input($r['Attribute']['label'], array('label'=>false,'div' => false,'id'=>$r['Attribute']['id'].'-','name'=>$r['Attribute']['label']...
I have a Cake PHP plugin that I have written. The plugin has its own controller so that it can serve up some dynamic code on the plugin's index page (/keyedit/ or /keyedit/index).
When images are requested from /keyedit/img/ they are served up properly. But if the image doesn't exist Cake thinks the /img/ is a method in the keyedit_cont...
Hi,
I had created a input fields in the View Page like
<div class="input text">
<label for="2">First Name (required) </label>
<input type="text" value="" style="width: 300px;" id="2" class="required" name="First Name"/>
</div>
<div class="input text">
<label for="5">Emailid</label>
<input type="text" value...
I have reframed my Question:
I have a drop down box which is populated with a list of users.
<a href="#" class="Share<?=$r['Form']['id'];?>">Share</a>
<form action="/FormBuilder/index.php/forms/share/<?=$r['Form']['id']?>/<?=$userid?>" method="post" id="shareform<?=$r['Form']['id'];?>" class="shareform">
<p>Select the...
I want to initialize constants and get across application in cakephp. Plz help me.How to use?
...
HI,
I have a problem with cake php built in auth - i cannot log in ...
1)user is added through app control pannel and hashed using $this->auth->password('xxx') - i've checked it's corrent in db
2)security salt is not emtpy
3) in action User/Login data['User']['password'] is empty (i don't know if this is correct but i've read t...
Hi,
I am invoking a web service and get data. The result has "TotalPages", "TotalResults" information.
Based on this, I need to generate a paging mechanism using cakephp.
Please share some code snippet or advise me on how to achieve this.
...
Hi,
I am trying to use a cookie that is set by other page in my domain to authenticate the user.
Say I have needpassword.example.com written using cakephp,
and the cookie is generated by auth.example.com (using a Perl CGI program).
To login in to needpassword.example.com, I need to redirect to auth.example.com to set the cookie, and th...
Hi,
In my cakephp application i need to use my controller in helper.php. Its not working. will any one explain it with little syntax?
...
I have a really long list of itinerary items with integer values. I was thinking about creating a database with each of these items with like fifty columns but that seemed a bit long-winded, and the itinerary may change. Is there a better way to store these name => value pairs in a database? serializing seems a bit crude, I was thinking...
accessing model in helper is correct or wrong? in cakephp application.
How can we access htmlhelper inside our custom helper?
Thanks
...
Hi,
I want to control access for unregisteres/unlogged users using Acl - i've setup it , tested it's working i can create new groups , users, add user to group and setup group premissions for specific controller actions
I've created usergroup called unregistered and user called temp but have no idea how to assign (map) unlogged perso...
Hi,
Am using a view file,controller and a helper. am accessing data value through webserver.
Steps:
the controller get value from webserver and set it in the view. the view uses the helper to display the data in some format. But my helper again calls the webserver method to get the inner values. Is it correct the helper accessing web...
Before starting, note that I have to update a website that is not mine, so I can't redo the whole logic. If I were to do this I would do it differently.
I have a cakephp application with a form with a lot of fields. In this form you can browse for a file and save it asynchronously. Here is how it's done:
<input type="file" name="data[F...
hi,
In CakePHP,if i give href links as href="/css/main.css" it is not refering to the css folder in the webroot. Only when I mention href="http://localhost/cake/app/webroot/css/main.css" the css gets applied.
<link type="text/css" rel="Stylesheet" href="/css/main.css" media="screen,projection" />
This does not apply the specied c...
Hello everyone,
I am working on a website build using cakephp framework. My problem is that sometimes it is not rendered properly. either the css is not applied or is half applied. After refreshing page 4 to 5 times it displays properly.
The problem is with all browsers.
This problem occurs quite frequently while browsing the website an...