On Feb 25, 2:21 am, Dhana wrote:
> Here's a snippet of the save code I am calling.
>
> if($this->Task->saveAll($this->data['Task'])){
> $this->Session->setFlash('The task has been updated', 'default',
> array('class' => 'information'));
> $this->redirect(array('action' => 'show', $id));
I have a Task model which has many todos. I have a form that edits
both the title of the todo and any number of the todos (if the task
has any) in one form. The form as you can see below submits to the
task edit action. But when I submit the form, only the title of the
task is updated, but not
Try the bottom part here: http://book.cakephp.org/view/166/Pagination-in-Views
I too am having the same problem. Even if I pass the correct url vars
to paginator, the urls aren't routed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
That's a shame, that makes a user plugin (half) pointless since you
would still have to have the beforeFilter code outside the plugin
On Feb 24, 9:45 am, majna wrote:
> To call AppController beforeFilter
> form
> PluginAppController:
>
> plugin_name_app_controller:
> function beforeFilter(){
>
Hey guys,
I can't seem to get this to work :-( . I currently have the following
route set up for my categories pages, which works great:
//Categories page route (example: http://www.mydomain.com/category_name_here-id)
Router::connect('/:name-:id',
array(
'controller' => 'c
Also heres an example of a controller action, where the TeamsUser
model loads fine:
/**
* Broadcasts
* @access private
*/
function broadcasts() {
$user_id = $this->Auth->user('id');
$pageTitle = __d('dashboard', 'broadcasts', true);
$team_ids = $this->TeamsUser->getTea
Checked file names, paths, everything. Heres the errors I get with
debug on:
Its for missing functions, meaning the model didnt load and instead
its the appmodel object.
$mostPlayed = ClassRegistry::init('TeamsGame')->getMostPlayedGames();
$newlyCreated = $this->Team->getRecentlyCreated();
$larg
check permissions, turn debug on 2
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-ph
Hey everyone. Thanks for responding. Before I paste the full code, let me
explain in more detail what I am trying to do.
When someone signs up on my website, they have to have an account on another
website. The website is give or take in this structure
http://www.website.com/info.xml?r=value1&y
Thanks for your insight. I was actually messing around and came up
with something that works so I will share what I came up with in case
you ever want to give it a try. Not sure if it’s a hack or what but
this is what ended up working.
By adding array('value'=>'') where the title would normally go
Hey,
The method I use workds really well on all browsers, and is achieved with
CSS:
.save_btn {
background: #fff url(../img/myimage.png) top left no-repeat;
width: 70px;
height: 20px;
padding-top: 20px;
overflow: hidden;
}
If your image is a 70 pixel by 20 pixel button for a sin
What I have been trying to do is use an image to submit the AJAX form.
Thing is I am using a CSS sprite as the image so i have the hover and
other button states in the CSS. the actual image(s) are in the CSS and
not physically linked to the submit. I have the class added fine to
the submit link,
On Tue, Feb 24, 2009 at 7:59 PM, Patrick Hereford wrote:
> Hey everyone. I am having some trouble with this model class. The error it
> is giving me is the following:
> "Parse error: syntax error, unexpected ';', expecting T_FUNCTION" on the
> last line with the bracket.
> Any advice?
Welcome,
Have you tried debugging App's import method to see what exactly is
causing import to fail?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.c
>> "http://www.website.com/product.xml?x=".$this->$data[$this->$name]['value1']."y=".$this->$data[$this->$name]['val
>> ue2'];
I see whitespace.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
On Feb 24, 11:48 pm, BrendonKoz wrote:
> Can't Magento be used as a CMS as well?
Well, it _is_ a CMS, albeit a specialized one.
> Cake can also be used to
> manage certain areas of the other packages if you modify the useTable
> information. There were a few blog posts I read when I was star
Hello Patrick,
could you paste full content of the file?
On Wed, Feb 25, 2009 at 12:59 AM, Patrick Hereford wrote:
> Hey everyone. I am having some trouble with this model class. The error it
> is giving me is the following:
> "Parse error: syntax error, unexpected ';', expecting T_FUNCTION"
They are. The weird thing is the models use to work, and randomly
stopped working. I tried clearing model cache too.
games_system.php / class GamesSystem extends AppModel
teams_user.php / class TeamsUser extends AppModel
teams_game.php / class TeamsGame extends AppModel
--~--~-~--~~--
Hey everyone. I am having some trouble with this model class. The error it
is giving me is the following:
"*Parse error*: syntax error, unexpected ';', expecting T_FUNCTION" on the
last line with the bracket.
Any advice?
Model Class:
uses('Xml');
function isValid($value)
{
$url =
check you file names. make sure they are lowercase and underscored.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from t
So I'm working on this project that has about 25+ models. But I have
these 3 models that use to work, and randomly stopped working. They do
not get initialized and instead the AppModel object is returned, so I
lose all my associations and custom functions, and now everything is
breaking. The 3 mod
I'm trying to implement a login system using Auth and Ajax.
The idea is similar to Digg system, when you click on a not allowed
action, an ajax box is open with a login form in the same window.
Using Auth is simple to render the normal login form(with $this->Auth-
>loginAction) but I don't know
Can't Magento be used as a CMS as well? Cake can also be used to
manage certain areas of the other packages if you modify the useTable
information. There were a few blog posts I read when I was starting
with CakePHP that discussed how to do it with Wordpress (for example).
Personally, I like th
Hello All,
We have a mobile data application which posts information to a cake
site, I was wondering if cake has a method of restricting some header
output for particular controller actions ?
For example to stop the output of Set-Cookie and possibly some other
headers :
E.g. Set-Cookie: CAKEPHP=
Hi bakers!
I have an error I can't seem to understand and fix..
I have cakephp 1.2.1.8004 app which ran ok on one host, but after
moving to another host i'm starting to get Missing Controller errors
on every action. Sadly enough, it's users controller which handels
cookies and sessions.
Both ho
Hi bakers!
I have an error I can't seem to understand and fix..
I have cakephp 1.2.1.8004 app which ran ok on one host, but after
moving to another host i'm starting to get Missing Controller errors
on every action. Sadly enough, it's users controller which handels
cookies and sessions.
Both ho
Nevermind, I moved the action to admin_add and forgot to add 'type' =>
'file' to the form create in the admin_add.ctp.
Sorry for the noise.
On Feb 24, 9:30 am, dogenpunk wrote:
> Hi,
> I'm using Nick Baker's FileUpload component (http://bakery.cakephp.org/
> articles/view/file-upload-component-
Thanks a lot that's what I need, I'm so thankfully.
Regards from Mexico
On 23 feb, 15:11, Gwoo wrote:
> http://api.cakephp.org/1.1/
> (make sure you use a trailing slash)
>
> The 1.1 is back for the time being. It is still using the old doxygen
> generated html, so it may not work perfectly, bu
Hi All,
Can anybody see anything wrong with the file or class names below?
Table
article_categories
Controller
Class name: ArticleCategoriesController
File name: article_categories_controller.php
var $name: ArticleCategories
Model
Class: ArticleCategory
File name: article_category.php
var $nam
On Tue, Feb 24, 2009 at 2:26 PM, Stuart wrote:
>
> I've been reading the docs for several PHP frameworks trying to get a
> feel for which one is the best suited for this purpose. My web/
> application server is running on Solaris 7 on a Sun box and I need to
> connect to a Windows 2003 server run
I'm just wondering if Cake's system of doing ACL is the smartest way
to implement control logic in a way that will be easy to maintain as
the system progresses. It seems that when access control is
implemented at the record level, we wind up with a lot of extra work
to do (and the potential for m
I've been reading the docs for several PHP frameworks trying to get a
feel for which one is the best suited for this purpose. My web/
application server is running on Solaris 7 on a Sun box and I need to
connect to a Windows 2003 server running MS SQL Server 2005. I'm
beginning to suspect that thi
I've got the actAs Image behavior working to upload images and
associate them with records.
I've hit a little snag though when trying to pull up the records
'recursively' when using the containable behavior
1. Merchant hasMany Coupons
2. Coupons have images (img1, img2)
Code
$this->OnsaleMerch
Does anyone know how to get rid of the text rendering in steps in IE?
When I update a DIV everything works correctly but the text is
rendered all jagged then after a second it "snaps" in an looks
correct. I saw a page on the web about it but now can not find it.
link code:
link('update', '/users
First of all, excuse my poor english.
Well, I need to develop a homepage for my job. They want a dynamic
homepage similar to Wordpress. A homepage formed by differents parts
like a dashboard, showing specific information about the whole
website, and ordering/showing these parts in different way
Sounds like might have forgotten to $this->set('posts', .);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
Thanks for the tip. I went back and grabbed app/tmp/ from the tarball and
set the permissions. No dice. Any other ideas?
On Mon, Feb 23, 2009 at 4:36 PM, Graham Weldon-2 (via Nabble) <
ml-user+130787-478663...@n2.nabble.com
> wrote:
>
>
> Ensure the full app/tmp/ directory skeleton is in place,
Are there any reliable statistics for real sites built with Cake?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from thi
All of my CakePHP work to date has been a CMS of one sort or another.
I'm beginning to wonder if maybe I should be using an off the shelf
CMS instead, at least for some of the projects (some are too bespoke
to reasonably do that).
While I've looked at Drupal, Joomla etc. the arguments for and aga
debug($posts);
On Tue, Feb 24, 2009 at 10:57 AM, sequence wrote:
>
> im just trying to make work an example of cake to display news... but
> i get this error:
> Warning (2): Invalid argument supplied for foreach() [APP/views/posts/
> index.thtml, line 10]
>
> this is the code;
>
> View Posts
>
>
On Tue, Feb 24, 2009 at 11:36 AM, Mech7 wrote:
>
> I am having some problem with trying to accomplish many views on 1
> page... I know requestAction works nice and easy but is expensive so i
> have been trying to avoid it...
>
> Basically what i am trying to do is have one page (or view) and have
Hi Nuto,
Thank you very much for asking. The use you are describing would be
supported and allowed by Cake Software Foundation. Please, feel free
to distribute the xml to help with the translations. Also, if there is
anything we can do to help, stop by #cakephp.
--~--~-~--~~--
im just trying to make work an example of cake to display news... but
i get this error:
Warning (2): Invalid argument supplied for foreach() [APP/views/posts/
index.thtml, line 10]
this is the code;
View Posts
ID
Title
Created
i n
Hi,
I'm using Nick Baker's FileUpload component (http://bakery.cakephp.org/
articles/view/file-upload-component-w-automagic-model-optional) and am
running into some weird issue. I have two models, Pictures and
Uploads. Uploads belongs to Pictures (FK: picture_id). In the Picture
add view I have a
Hello everyone.
I'm translating the CookBook into Japanese.
For supporting other translators, I wanna distribute a translation
memory (TM).
TM is a XML format, contains a pair of an original English sentence
and a translated text.
TM makes translation very easy.
And, the CookBook is licensed by CC
This should be fairly easy to find in the docs, did you bake your app
using the bake script? or is it all from scratch?
Also if you have multiple choices for one field, radio buttons should
be used instead of check boxes (Usually the standard form completion
protocol).
However if you would like
I am having some problem with trying to accomplish many views on 1
page... I know requestAction works nice and easy but is expensive so i
have been trying to avoid it...
Basically what i am trying to do is have one page (or view) and have
all the other views ( or elements ) loaded in there, dynam
Hi,
first off, here is my core.php code (everything uncommented):
===
Configure::write('debug', 0);
if(stristr(PHP_OS,'WIN'))
Configure::write('debug', 2);
Configure::write('Routing.admin', 'admin');
Configure::write('Cache.check', true);
define('LO
Hi,
first off, here is my core.php code (everything uncommented):
Configure::write('debug', 0);
if(stristr(PHP_OS,'WIN'))
Configure::write('debug', 2);
Configure::write('Routing.admin', 'admin');
Configure::write('Cache.check', true);
define('LOG_ERROR', 2);
Configure::write('Session.save
On Tue, Feb 24, 2009 at 1:22 AM, inna wrote:.
>
> I've referenced my js scripts on the default.ctp layout, I have
> referenced my css, I have checked if the tags are pointing to the
> right classes, everything SHOULD be working right now.
>
> Cake doesn't throw an exception but it doesnt let me u
Thanks. Changing debug to 0 actually made things a lot faster. What
would be the best way to see where the problems are occurring when
debug is set to 2?
On Feb 24, 10:25 am, majna wrote:
> remove exit, set debug to 0 and find slow part.
> additional model paths add one location more where cak
update_programs action can render the same element back instead of
view.
On Feb 23, 1:32 am, WidePixels wrote:
> Need a little help rendering a view or an element.
>
> What I have is a profile view is:
> element('profile/
> view_programs'); ?>
>
> which has the info for the user.
>
> I have edi
To call AppController beforeFilter
form
PluginAppController:
plugin_name_app_controller:
function beforeFilter(){
parent::beforeFilter();
}
On Feb 24, 8:48 am, Adam Royle wrote:
> Due to the way plugin controllers work with inheritance, you can only
> access the plugin's beforeFilter logic
remove exit, set debug to 0 and find slow part.
additional model paths add one location more where cake looks for
model file.
this is very small performance hit (on disk I/O. Even smaller on
virtual machine setup.)
On Feb 24, 1:47 pm, Rich wrote:
> I am using $modelPaths in bootstrap.php to us
Thanks this will help us a lot.
On Feb 23, 5:11 pm, Gwoo wrote:
> http://api.cakephp.org/1.1/
> (make sure you use a trailing slash)
>
> The 1.1 is back for the time being. It is still using the old doxygen
> generated html, so it may not work perfectly, but hopefully your old
> bookmarks will b
hello all,
how can i store the value of enum using multiple checkbox select. &
how can i store it into database. suppose i use a data base field name
maritial_status then in the view i uses multiple checkboxes with
status. when i click on the checkbox it gives me result 1 or 0. now i
have to stor
You can bet on the 1.3 branch already being well underway, probably the 2.0
branch too..
If its not yet public, chances are its not really ready for us to use.
The Cake team ensure that what we get our hands on is a correct
representation of where the framework is heading.
Often its best to hold
It's going to be fixed in 1.3.
https://trac.cakephp.org/ticket/5864
By the way, does anybody know when the 1.3 branch will be started?
On Feb 24, 9:57 am, Nextri wrote:
> I'm getting a lot of extra queries when doing certain contains.
> Cakeversion: 1.2.0.7962
>
> I've got three Models
>
> Mem
Yes, that is a bit clearer, although attaching code is not the best
idea. This is what CakeBin is for.
Now, I honestly don't how could one controller affect the other one.
What I can see from your code is that you are repeating your code in
beforeFilter() for both controllers. You should put tha
Hi AD7six,
I have the following setup:
Table
article_categories
Controller
Class name: ArticleCategoriesController
File name: article_categories_controller.php
var $name: ArticleCategories
Model
Class: ArticleCategory
File name: article_category.php
var $name: ArticleCategory
Views
Directory
On Feb 24, 1:11 pm, Mark wrote:
> Hi Adam,
>
> I'm using the following data structure for the table:
>
> id int(11) unsigned NULL auto_increment
> name varchar(50) NULL
> parent_id int(11) Default NULL
> lft int(11) unsigned Default NULL
> rght int(11) unsigned Default NULL
>
> Thanks
I am using $modelPaths in bootstrap.php to use models in 1 application
from another one. The issue I am having is how long it takes to
render a page when doing this. Is there a large performance hit when
sharing resources between applications?
I created a simple test.ctp file and the only code
Hi Adam,
I'm using the following data structure for the table:
id int(11) unsigned NULL auto_increment
name varchar(50) NULL
parent_id int(11) Default NULL
lft int(11) unsigned Default NULL
rghtint(11) unsigned Default NULL
Thanks for the tutorial link. I've had a read it and can't f
I'm getting a lot of extra queries when doing certain contains.
Cakeversion: 1.2.0.7962
I've got three Models
Member
Item
Itemrating
Itemrating belongsTo Item
Item BelongsTo Member
I'm trying to do a find on Itemrating and contain Item and Member
Here is the code to do the find:
I have a HABTM relationship and when I delete the main row, only the
1st related row gets deleted and the delete fails. The problem seems
to be in the model::exists() function after calling from the start of
the model::del() function (line 1671). The 1st time __exists is not
set and reset is fal
On Tue, Feb 24, 2009 at 4:22 AM, inna wrote:
>
> Hi, I'm a long time web designer who has just started looking into
> cakePHP, unfortunately i'm stuck and need help with an issue that for
> the life of me I cannot find an answer to.
> I'm trying to migrate my old ajax code from my existing websit
Both protaculous and jquery (and prob most other js libraries) have a
sortable function so you can drag and drop records (re-ordering) with
your mouse, and a serialize function so you can send the re-ordered ids
back to the server to update the database.
I'm sure you could also do the move up/
Clicking on the table header is only temporary. I need a permanent
solution which changes the order of the table.
Something like: "Move up", "Move down", "Move to the top" and "Move to
the bottom"
Best Mathias
On 24 Feb., 11:51, "Liebermann, Anja Carolin"
wrote:
> Hi Hasentopf,
>
> Do you thin
Hi Hasentopf,
Do you think of drag and drop or sorting by clicking on the table header?
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von hasentopf
Gesendet: Dienstag, 24. Februar 2009 11:36
An: CakePHP
Betreff: Manual sorti
Hi!
I would like to use colspan but i dont know how to do it, is it even
possible to do ?
I'm a beginner with cake so please help me if you can :)
I have tried
$tr1= array(
array(
$article['Blog']['title'] ,array
('colspan'=>'2')
Hi.
Does anyone know a way for sorting records in a table manually by the
user?
It should be possible, to arrange the order of the data records by
hand.
Any suggestions?
Best Mathias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Hi
I have a mediawiki and a cakephp application.
Now I would make that a user that is logged on my application can
automatically access on wiki.
So I use the API of the wiki to make login and then I set the cookie
for the wiki. But then in this way I lost the cookie relative for my
cakephp applic
What I want to accomplish is I have two screens. First is member login screen
(users_controller.php) which takes userid and password. I want the password to
be hashed. The second screen is change password
screen(usersinfo_controller.php) . In that screen too the password needs to be
hashed. In
If you're having problem with a piece of your code, use the CakeBin
(http://bin.cakephp.org/) to show us your code, give us a detailed
description of your problem, i.e. what do you want to accomplish, what
is the expected output and what is the output you're getting.
Then someone might try to ans
On Feb 23, 2:19 pm, Mathew wrote:
> > You don't say how the requestAction fails. What is the error you get?
>
> I found that the requestAction method works if caching is disabled,
> but when caching is enabled requestAction will return the contents of
> the /tmp/cache/views/home.php rather then
Hi, I'm a long time web designer who has just started looking into
cakePHP, unfortunately i'm stuck and need help with an issue that for
the life of me I cannot find an answer to.
I'm trying to migrate my old ajax code from my existing website, I
have read the cakephp documentations but cannot fin
Hello,
I have a problem with AutoComponent. I want to use AutoComponent in two
different controllers. If I use it in only one controller its fine. If I use
it in the second controller, the AutoComponent in the first controller is
not valid and password field is not encrypted.
Any help will
Yes,
it makes sense, and it works...
Thx
On 24 fév, 15:39, Adam Royle wrote:
> I think you're on the right track with your thinking.
>
> 1) You should route to your "users" controller, not the pages controller
>
> Router::connect('/search', array('controller' => 'users', 'action' =>
> 'sear
78 matches
Mail list logo