hello,
trying to develop some sort of login tracker for my cakephp application.
i know that i need code like:
$this->data['LoginSession']['username'] = $_SERVER['REMOTE_ADDR'];
$this->data['LoginSession']['ipAddress'] = $_SERVER['REMOTE_ADDR'];
$this->LoginSession->save($this->data);
... in (i guess) users_controller, but don't know...
The CakePHP Cookbook states that a Model can use a file (csv for example) instead of an actual database table but I couldn't find any implementation for it.
I was wondering if it is possible to use an Array of data as a model in CakePHP since I have a fairly static set of data which is important to me in a relationship with another tabl...
I noticed in Firefox when viewing the cookies that the values I am saving are encrypted. The CakePHP Book states that values are encrypted by default on write(). My assumption is that they are automatically decrypted on read(). I can't seem to find any gotchas in the doc.
Anyone else experience this problem? I am sure I am missing somet...
I have a table that store all information about class, but because Class is reserved for class name I had to rename the table from classes to types.
But in the view section I need it to be displayed as "Class", including the Paginator links.
Anyway to achieve this by adding something in the Type model, without completely customize Pagi...
I just finished the "15 min Blog Post tutorial" included in the documentation for cakephp. I was asked for another tutorial to change the layout for first tutorial.
However, I am fairly new to MVC programming/Cakephp and I have no real clue how to do so. Well, I know I need "default.ctp" placed in app/views/layouts/ and I presume I n...
Hi all,
The url structure of my cakephp based site is mysite/cakephp/myapp/index.php/controller/action/input_paramaters
I cannot remove index.php from my url, as I dont have access to httpd.conf file.
Anyways, my question is that I just need to change the url of my homepage to something like http://mysite or mysite/myapp
How would I ...
I'd like to use SimpleTest to set up some functionality tests for our project - in particular, we have a very busy page which has some random components and some static components, and I'd like to be able to write a simple test which only confirms the static bits (preferably only the one or two most important ones). In other words, I wa...
Possible Duplicate:
Remove .php extension with PHP
What's the best way to get rid of .php suffix in url strings so they look pretty?
Thank you in advance;-)
...
I guess simple answer to the question would be a component.
Although I agree, I feel weird having to write a component for something so specific.
For example, let's say I have a table of users. When a user is created, it should form a chain reaction of events, initiating different kinds of data related to the user all around the databa...
How can I make the Auth component of cakephp create, use and store a random salt with the password?
...
I created a function in my controller called addToPlaylist($songName). I wanted to add these song names to an array and then a session variable using an Ajax call. The first time i did this i got an error saying i do not have a template file to display in the chosen div ("add_to_playlist.ctp was missing"). I created this file and everyth...
hii..I want to edit single row.i used
$this->data = $this->BuildingProperty->read(null,$id);
but it didnt fetch the values of this id.
so what can i do. Give me any suggestion.
...
Hello,
Problem is about CakePhp. If I give permission to required directories CSS does not work. Sample URL: link text
Isn't this weird?
...
Hi everyone! I wonder if it's possible to use David Persson's media plugin with a many to many (HABTM) relationship.
With the hasMany relationship i made it work thanks to this tutorial (see the "advanced" section): http://www.slideshare.net/real34/the-cakephp-media-plugin
...
This has me beat. I'm trying to create an array of fields in cakePHP 1.2.5 & PHP 5.3.2
The array is zero based. On the first iteration, $count == 0. For some reason the string concatenation seems to convert this to null or unset which cake then interprets as "insert model name here", viz:
for($count=0;$count<$num;$count++)
{
echo $fo...
Hello,
I am very new to php, and I am trying to develop a facebook application using php.
I am using Joyent as my hosting platform.
Currently,
I am trying to do some simple scripts in php and then build on them. However I am unable to see any php files being rendered properly in my application.
For eg:
I have a simple script call...
I have CakePHP (1.3.2) running on UniformServer (basically a WAMPP server), and for some odd reason CakePHP makes the entire server crash when certain errors occur, forcing me to restart it. This is very annoying because not rarely a small typo results in a full minute of wasted time.
I haven't pinpointed the reasons yet, but it appears...
Hi All I am using cake1.3 version and try to populate acl.I am follow step from cakephp article. But i am only able to pululate acos table To setting permission i following from here http://book.cakephp.org/view/1550/Setting-up-permissions But i am getting error DbAcl::allow() - Invalid node
what i am missing
...
hi all, i want to edit row. view file contains dropwons with Ajax.
i used $this->data = $this->CourseBuilding->read(null, $id); but it cant read all fields of that id.
Can U help me.
...
Hi Experts,
I am working in cakephp.i have done rewrite url for all forms and links. and i have done server side validation through model.
but when server side error is generate then url rewrite not working
one form i have done urlrewrite for that like
Router::connect('/employers/edit-securitydetail/:id', array(
'controller' => '...