I want create sitemap but I know very litle about sitemap. I use cakephp. There has a lot software on google guide but i still want ask anyway easy create sitemap for cakephp.
I uploaded website on server, it dont lie on localhost
...
I use router
Router::connect(
'/articles/:id/:slug',
array('controller' => 'articles', 'action' => 'view'),
array(
'pass' => array('id', 'slug'),
'id' => '[0-9]+'
)
);
BUT how to prevent user enter /articles/view/:id .I can make page /articles/view/:id become " NOT FOUND " ?
...
I'm doing some work with CakePHP and want to use Hudson. I can run all kinds of plugins but I don't see anything for SimpleTest. Until Cake 2.0 comes out and they move to PHPUnit, I'd like to figure out how to run SimpleTest with Hudson.
...
When core.php debug is set at 1 or 2 and I browse to the root of my cakephp site I get expected result, the page served is correct, ie, PagesController default() action -> home.ctp
However if I change debug to 0 I get the the following error:
Error: The requested address '/' was
not found on this server.
My router.php file cont...
There are a lot of PHP frameworks inspired by Ruby on Rails (CakePHP, Akelos, symfony). Is Zend Framework inspired in other frameworks or ideas? Do you have references (websites, books, etc) talking about it?
Thank you.
...
Hello,
I am facing problem with captcha in cake php. when try to call captcha the session value display previous one. so never get the right answer.
Here is my code.
For component section i put this code
class CaptchaComponent extends Object
{
var $controller;
var $font = 'monofont.ttf';
function CaptchaComponent( $controlle...
i have some models A,B with HABTM C.
C has HABTM with D and F,i have implemented a model and controller to C.
cake does not detect C HABTM with D,F. although its in the model definition.
when update data in C i manually bind models to work.
any one could help!
...
I have a set of models that looks a bit like this
Member
Member_Addresses
Agents
AgentAddress
I also have a form that tries to let you update all these different models in one form. I am bit new to this way of making forms in CakePHP, and I'm having trouble getting the validation error messages to show up in m...
I want multiple admin routing..
One for Admin another for CLients.. is this possible. if not whats the best way to get around to this ?
thanks a lot.
...
I am working on development of an application using CakePHP framework.
We all have clients that click several times on the submit button.
How can I hide or (even better) disable the submit button when a user clicks on it?
On the internet I found several Javascripts that can do it, but I need help to integrate it into my CakePHP script...
Or are they only manipulated by the server? For instance, can we always assume that Auth.User.Id always corresponds to the current user?
...
I am in the process of customizing the default.ctp file and I am trying to display the currently logged on user's name on the top of the page.
In app_controller.php, I have the following:
function beforeFilter()
{
$user = $this->Auth->user();
if($user != null)
{
$this->Session->write('user_name',$user['User']['user...
I have a table called user_relationship. which has two foreign keys refering back to the User table to map that they are friends.
CREATE TABLE `user_relationships` (
`id` int(11) unsigned NOT NULL auto_increment,
`status` varchar(255) default 'pending',
`time` datetime default NULL,
`user_id` int(11) unsigned NOT NULL,
`frien...
Hi,
I am using the built-in email component of CakePHP 1.3, and it seems that all my emails go to the hotmail junk folder.
Does any of you know what to change to make Hotmail thinking this is NOT a spam? If some of you experienced the same issue, some feedback on what they've done or tried to fix it would be much appreciated.
Cheers,
N...
Just gettign into MVC developement and cakes implimentation, so I'm getting confused with table naming and id references.
I hava a table called Assets and value sotered in Assets is asset_status_id field which is meant to be a reference to the table Asset_Statuses this table is a simple list of possible statuses the assets could be in a...
Hi there,
I am getting this error in my local site.
Warning (2): htmlspecialchars(): Invalid multibyte sequence in argument in [/var/www/html/cake/basics.php, line 207]
Does anyone knows, what is the problem or what should be the solution for this?
Thanks.
...
Hi,
I was wondering how to do a redirect in the routes of a cakephp application.
I simply want to redirect on url /xxx to /yyy
I don't want to have to set up a controller or and action in the pages controller just to redirect a url.
Is there a way to do it in the routing?
Cheers.
...
I have an array field in the HTML:
< input type="text" name="WineDescripcion[Description][]" />
This field can be duplicated by clicking a button, How can I save it into the model trough the controller ?
This is my current code:
$this->Vino->VinoDescription->save($this->data);
But this returns an SQL error:
Query: INSERT INTO `vi...
This is causing me a bit of frustration this morning/late last night, and I'm sure I must be missing something painfully simple here....
In my view I have:
echo $this->Form->input('form_generator_field_type_id');
and in my controller I have:
$form_generator_field_types=$this->FormField->FormFieldType->find('list');
$this->set('form_...
I am paginating ($this->Customer->paginate()) on the 'Customer' model.
The customer model is associated to the 'Contact' model which in turn is associated to the 'ContactAddress' model.
So:
Customer hasMany Contact
Contact belongsTo ContactAddress
Now I want to paginate customers in the 'Customers->index()' using a search query let'...