It is written in the migration section, that you should use the views
method $this-set instead.
See http://book.cakephp.org/view/1566/View-and-Helpers
Enjoy,
John
On Apr 29, 7:54 am, Sergei yatse...@gmail.com wrote:
Hi,
just began to work with 1.3 and noticed that there is no way to set
How are you handling the form submission in your controller?
Are you saving the form submitted data or just keeping it in the
session?
What do you want to do with the submitted data (validate, save,
redirect to another page)?
Please show the code that handles the form submitted data.
Enjoy,
Try running the build_acl and initDB actions again. Or check in your tables
if you have the restrictions set.
On Thu, Apr 29, 2010 at 8:03 AM, Jon Chin port23u...@gmail.com wrote:
I just did a global search and I don't have that anywhere. Maybe I did
something wrong in my AppController?
Maybe I didn't get it right, but if you need a var globally available
(controllers, views, layouts) you could use $session. Easy to set and read
everywhere.
Andrei
On Thu, Apr 29, 2010 at 8:47 AM, Ed Propsner crotchf...@gmail.com wrote:
Could someone help get me pointed in the right
LOL, I obviously need to call it quits for the day ... talk about
over-thinking that one! It honestly didn't even dawn on me to try session
vars ... lol.
What do you say we both just walk away and forget this ever happened? 8-)
- Ed
On Thu, Apr 29, 2010 at 2:33 AM, Andrei Mita
Forget about what? :))
On Thu, Apr 29, 2010 at 9:49 AM, Ed Propsner crotchf...@gmail.com wrote:
LOL, I obviously need to call it quits for the day ... talk about
over-thinking that one! It honestly didn't even dawn on me to try session
vars ... lol.
What do you say we both just walk away
8-)
On Thu, Apr 29, 2010 at 3:00 AM, Andrei Mita andrei.m...@gmail.com wrote:
Forget about what? :))
On Thu, Apr 29, 2010 at 9:49 AM, Ed Propsner crotchf...@gmail.com wrote:
LOL, I obviously need to call it quits for the day ... talk about
over-thinking that one! It honestly didn't even
Hi..Every one ,
i am using postgresql database for cake when i am creating the user
authentication its show errors,
hope u i wrote properly but it shows Error, i wrote code like this
please any one can help me out.
My Database Table Name tbluser
--
redirect to another page
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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
I believe your table should be pluralized: users
Also, why do you use tbl before you table names?
On Thu, Apr 29, 2010 at 10:11 AM, Narendra Padala crazycake...@gmail.comwrote:
Hi..Every one ,
i am using postgresql database for cake when i am creating the user
authentication its show
Ok, so after having submitted the data, processed the data, then you
either save the data in the database or use the session to temporary
hold the information.
In the action to which you redirect, you either retrieve the data from
the database or from the session, depending on which solution you
yes indeed. I thought that's only for controller.
On Apr 29, 3:13 pm, John Andersen j.andersen...@gmail.com wrote:
It is written in the migration section, that you should use the views
method $this-set instead.
Seehttp://book.cakephp.org/view/1566/View-and-Helpers
Enjoy,
John
On Apr 29,
k sir
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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
Its currently running project, thats why are not at all do any changes in
the database table.
I have to use the same table only, i have no right to change the table, is
their any way please help me out
On Thu, Apr 29, 2010 at 12:48 PM, Andrei Mita andrei.m...@gmail.com wrote:
I believe your
Try this
$this-set('loggedIn', $this-Auth-user('lnguser'));
On Apr 29, 5:14 pm, Narendra Padala crazycake...@gmail.com wrote:
Its currently running project, thats why are not at all do any changes in
the database table.
I have to use the same table only, i have no right to change the table,
What error do you get?
On Thu, Apr 29, 2010 at 11:14 AM, Narendra Padala crazycake...@gmail.comwrote:
Its currently running project, thats why are not at all do any changes in
the database table.
I have to use the same table only, i have no right to change the table, is
their any way please
Hi,
Do plugins in cake1.3 need to be configured like it shows in the new
bootstrap file even if they are in the standard /app/plugins folder?
My $html-css links no longer find the files stored in the /app/
plugins/status/vendors/css folder.
also, this:
$.get(/status/google_analytics/?php echo
Hi,
I want to be able to choose if the find should do an AND or OR on a
find using an array but I can't get it to take the same array
The way I have been able to do it is like this:
//AND
$this-Cand-find('list',array(
'conditions' = array('AND' = array('Cand.code_id' = array(38, 49)))
);
//OR
Hi fellows, I was wandering if I need to use urlencode() in order to fill
the $request array for the httpSocket-request method. Any Idea?
--
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror, my sword and shield
Check out the new CakePHP Questions site http://cakeqs.org and
1) with plugins in 1.3 you have to rename the folder
vendors = webroot. see the migration guide
2) not sure - what do the logs show? might be routes. might be that your
using some code that has been depreciated in 1.3
- S
On 29 April 2010 09:35, #2Will willjbar...@gmail.com wrote:
Hi,
Thank you Arjen, I already use the Linkable behavior and I will test
this version.
On Apr 28, 4:57 pm, Terr mega...@gmail.com wrote:
Hi fellow bakers,
When upgrading to CakePHP 1.3, some of you might be running into
problems when with LinkableBehavior. I've got an updated version on my
'Cand.code_id' = $data provides Cand.code_id IN (1, 2, 3) that is
equivalent to Cand.code_id = 1 OR Cand.code_id = 2 OR Cand.code_id =
3. So there is no need in OR. Query like Cand.code_id = 1 AND
Cand.code_id = 2 AND Cand.code_id = 3 is useless. So there is no need
in AND. So what do you want?
1.3 seems to behave the same way herer as 1.2.x.
I'm using 1.3.0 Stable and encountered the same problem.
Not using 'echo' solved the strange output.
regards,
Bart
On Apr 16, 2:31 pm, Jeremy Burns jeremybu...@me.com wrote:
Which version are you on? If it's 1.2.x, try:
$session-flash(); //
I want to be able to pass an array of id's into a find and also
specify if the results found should contain all of the id's or any of
them.
Thanks
Alex
On 29 Apr, 12:04, Dr. Loboto drlob...@gmail.com wrote:
'Cand.code_id' = $data provides Cand.code_id IN (1, 2, 3) that is
equivalent to
no solutions
On 23 Apr., 09:19, meximex meixne...@gmail.com wrote:
hi,
i would like to include wordpress into my cakephp application but i
dont want it to be on a seperate url like /blog.
reasons for that are that the users looses his session inside the
site, looses the usermenu (i know
Hello,
In a basic CRUD application I have a user's profile edit page.
When /profiles/edit/4 page is accessed the action in the controller checks
if an id is passed, then if I have some data to be saved.
If the id is present but no data, it reads the id related data and then pass
it to a view like
Try: $this-Form-value('Model.field_name');
Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573
On 29 Apr 2010, at 15:14, Andrei Mita wrote:
Hello,
In a basic CRUD application I have a user's profile edit page.
When
What do you mean by dont want it to be on a seperate url like /blog?
You don't want it to be domain.com/blog ?
On Thu, Apr 29, 2010 at 4:35 PM, meximex meixne...@gmail.com wrote:
no solutions
On 23 Apr., 09:19, meximex meixne...@gmail.com wrote:
hi,
i would like to include wordpress
Thanks for the suggestions. It turned out that I needed to add
$this-Auth-Authorize = 'actions'; to my AppController.
On Wed, Apr 28, 2010 at 11:26 PM, Andrei Mita andrei.m...@gmail.com wrote:
Try running the build_acl and initDB actions again. Or check in your tables
if you have the
In the view?
If yes, I get this:
*Notice* (8) javascript:void(0);: Undefined property:
View::$Profile [*APP/views/profiles/edit.ctp*, line *17*]
Code javascript:void(0); | Context javascript:void(0);
$___viewFn = /var/www/fotopoetica/app/views/profiles/edit.ctp
$___dataForView =
hi
i'm using a plugin made by myself and works great!!, but when i try to
change $displayField property in model, it does not take the new
value, else, continue searching a field (name) that never existed !! ,
he must search a field named; subject
http://bin.cakephp.org/view/1740147782
here is
Like I said it does seem to breed arrogance.
Writing for the bakery needs time and effort. When developers put in
such an effort they are doing that to disburse their knowledge to
other developers. Their efforts should be lauded and not taken lightly
or their work criticized.
So if you look your
I mean, I know where you put your own (/app/views/layouts/
default.ctp), but that file doesn't exist when cake is first
installed, and a layout is still being generated. Is there any way to
access that?
I ask more for learning purposes than anything practical. I thought it
would be interesting to
Hello all,
I am totally new to php as well as cakephp. I am stuck at a very
simple issue,hope someone can help me here.
I have an RSS feed which gets generated outside of my php application.
I have a route defined as '/feed' which maps to a controller[rss] and
action[feed]. Action has a simple
Well it does and doesn't work for the controller - it is not very
cool, but a simple
switch($path[$count - 1]) {
case 'home':
$title_for_layout = 'Your title for home page here';
break;
...
Would work and allow you to set any number of custom titles in
PagesController. It isn't perfect, but
hello all !
Can I Update multiple div in ajax call
using $ajax-observeField();
thanks in advance.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP
Hi Friends ,
Hi any 1 tel me how to get all the controllers/action viewed by the
user after he loged in once..
Thanks In Advance
Ram Prasath
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you
Works for me - I'm on 1.3 - are you?
Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 15:24, Andrei Mita wrote:
In the view?
If yes, I get this:
Notice (8): Undefined property: View::$Profile [APP/views/profiles/edit.ctp,
line 17]
Fatal error: Call to a member function value()
Hi!
I'm trying to add a video file into my cakephp project using the html5
video tag. If i write a simple html file with this code:
video src=video.ogv controls=controls
your browser does not support the video tag
/video
If works properly in firefox. But if I try to the next code to my .ctp
Look in /cake/libs/view/layouts - that is used by default. If you want to
change it, copy it into your equivalent folder in /app.
Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 05:31, mofahead wrote:
I mean, I know where you put your own (/app/views/layouts/
default.ctp), but that file
Terribly sorry for the whole controller dump.
I only meant this:
Notice (8): Undefined property: View::$Profile
[APP/views/profiles/edit.ctp, line 17]
Fatal error: Call to a member function value() on a non-object in
/var/www/fotopoetica/app/views/profiles/edit.ctp on line 17
On Thu, Apr 29,
1.2.7 i believe.
On Thu, Apr 29, 2010 at 5:32 PM, Andrei Mita andrei.m...@gmail.com wrote:
Terribly sorry for the whole controller dump.
I only meant this:
Notice (8): Undefined property: View::$Profile
[APP/views/profiles/edit.ctp, line 17]
Fatal error: Call to a member function
What does line 17 look like? What version are you on?
Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 15:32, Andrei Mita wrote:
Terribly sorry for the whole controller dump.
I only meant this:
Notice (8): Undefined property: View::$Profile [APP/views/profiles/edit.ctp,
line 17]
OK - that might be it then. Only just discovered this functionality - maybe
it's a 1.3 thing.
What's in $this-data?
Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 15:33, Andrei Mita wrote:
1.2.7 i believe.
On Thu, Apr 29, 2010 at 5:32 PM, Andrei Mita andrei.m...@gmail.com wrote:
line 17: legend?php __('Modifica Profil -
'.$this-Form-value('Profile.name'));?/legend
I'm on 1.2.7 stable.
On Thu, Apr 29, 2010 at 5:34 PM, Jeremy Burns jeremybu...@me.com wrote:
What does line 17 look like? What version are you on?
Jeremy Burns
jeremybu...@me.com jeremybu...@mac.com
Hi all bakers,
I have coded like this to render two views in a single controller.
$this-render('upload_photos','layout1');
$this-viewPath = 'ideas';
$this-render('edit_progress',null);
But the problem is it renders layout1 completely after rendering
upload_photos, and then it renders the
I populate $this-data like this:
function edit($id=null){
...
if (empty($this-data)) {
$this-data = $this-Profile-read(null, $id);
...
}
On Thu, Apr 29, 2010 at 5:38 PM, Jeremy Burns jeremybu...@me.com wrote:
OK - that might be it then. Only just discovered this
Why not install the debug kit - it shows you all of your variables - might
expose something? I use it all the time now.
Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 15:33, Andrei Mita wrote:
1.2.7 i believe.
On Thu, Apr 29, 2010 at 5:32 PM, Andrei Mita andrei.m...@gmail.com wrote:
To retrieve ANY of the results with any of the id's, just call:
$data = array(38,48);
$this-Cand-find('list',array(
'conditions' = array('Cand.code_id' =$data)
);
Otherwise, if you want all of them, you can call a count() with the
same conditions to see how many rows it returns and then compare
What happens if you:
die(debug($this-data));
... in the view?
Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 15:42, Andrei Mita wrote:
I populate $this-data like this:
function edit($id=null){
...
if (empty($this-data)) {
$this-data =
i was more looking for a real life sample of a search form - any would
do
there is no real life Cakephp search forms available,
there are simple search forms and samples for beginners , but these
are useless for real life complicated searches
On 28 apr, 19:13, John Andersen
outputs the data:
Array
(
[Profile] = Array
(
[id] = 1
[name] = Andrei Mita
[birth_date] = 2030-09-23
On Thu, Apr 29, 2010 at 5:50 PM, Jeremy Burns jeremybu...@me.com wrote:
What happens if you:
die(debug($this-data));
... in the view?
I did it: echo $this-data['Profile']['name'] solved the problem.
I was using $session-params['path']['url']['url'] in some other place but
it didn't cross my mind to use it for data.
Thanks for your time.
On Thu, Apr 29, 2010 at 6:02 PM, Andrei Mita andrei.m...@gmail.com wrote:
outputs the
echo $this-data['Profile']['name'] should output what you want!
On 29 abr, 12:02, Andrei Mita andrei.m...@gmail.com wrote:
outputs the data:
Array
(
[Profile] = Array
(
[id] = 1
[name] = Andrei Mita
[birth_date] = 2030-09-23
On Thu,
Hi,
Is it possible to create hierarchicy datasoruces?
I ve the following situation:
class MyDataS1 extends Datasource {
}
and want a secondo datasource
class MyDataS2 extends MyDataS1{
}
any chance to have it working?
--
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror,
I think mex is talking about dropping WordPress right into the webroot
folder with the ultimate goal being to have http://www.example.com/users
going to UsersController in Cake and http://www.examples.com/some-post/
going to WordPress. The problem is, .htaccess would have no easy way
of knowing
On Apr 29, 6:16 am, Jayesh Wadhwani jwadhw...@gmail.com wrote:
Like I said it does seem to breed arrogance.
Writing for the bakery needs time and effort. When developers put in
such an effort they are doing that to disburse their knowledge to
other developers. Their efforts should be lauded
On Apr 29, 3:28 pm, slippy handle...@gmail.com wrote:
I want to be able to pass an array of id's into a find and also
specify if the results found should contain all of the id's or any of
them.
how can a field contain more than one value. Good luck getting more
than 0 results with that.
(id
On Apr 29, 5:25 pm, emanuele emanuel...@gmail.com wrote:
Hi,
Is it possible to create hierarchicy datasoruces?
I ve the following situation:
class MyDataS1 extends Datasource {
}
and want a secondo datasource
class MyDataS2 extends MyDataS1{
}
any chance to have it working?
Here is my basic file structure
app/controllers -
/categories/categories_controller.php
/news/news_controller.php
/users/users_controller.php
First attempt (default controller paths):
$controllerClasses = App::objects('controller');
Good riddance.
I don't think I've seen such an arrogant attitude in the CakePHP
community before.
I mean: this has been amply covered in this 'topic', and the topic I
started.
Accept the fact that CakePHP is an open source, open community
project, or get lost.
If you paid for the service, then
ok sorry... but A bit less of sarcasm?
so..
thank u
On Thu, Apr 29, 2010 at 5:46 PM, AD7six andydawso...@gmail.com wrote:
On Apr 29, 5:25 pm, emanuele emanuel...@gmail.com wrote:
Hi,
Is it possible to create hierarchicy datasoruces?
I ve the following situation:
class MyDataS1
Well its simple. You cant put controllers within subfolders. Cake
doesn't support it.
If you want to put controllers within subfolders, you have to make it
a plugin.
On Apr 29, 7:38 am, Matthew ghostofagoodth...@gmail.com wrote:
Here is my basic file structure
app/controllers -
I know that you are asking for a form, but isn't what you really want,
the processing of the search form, when it has been submitted?
I can show a search form, which is in progress of being made, maybe it
can give you some ideas.
http://jaa.myftp.org:28871/enquiries/article
Enjoy,
John
Ps. my
See the CakePHP book regarding elements and their usage:
http://book.cakephp.org/view/97/Elements
Use Elements to present parts of the interface, that can be used in
more than one page/view.
So if your main action is upload_photos, then in your
upload_photos view, you can invoke an element named
i need ajax shopping cart with cakephp
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
You track it using the log or a database table.
Enjoy,
John
On Apr 29, 3:13 pm, ram prasath 85.pras...@gmail.com wrote:
Hi Friends ,
Hi any 1 tel me how to get all the controllers/action viewed by the
user after he loged in once..
Thanks In Advance
Ram Prasath
Check out the new
No you don't, according to the CakePHP book! The request method
expects an array!
Enjoy,
John
On Apr 29, 12:04 pm, emanuele emanuel...@gmail.com wrote:
Hi fellows, I was wandering if I need to use urlencode() in order to fill
the $request array for the httpSocket-request method. Any Idea?
Jacmoe, I can't agree with you!
Jayesh W did not complain about the Bakery itself, but about the
process of having submitted an article, which was then deleted,
without a reviewer having informed of the reason for it!
That should never happen!
John
On Apr 29, 6:51 pm, jacmoe jac...@mail.dk
Hi,
i'm having trouble getting sessions to work in 1.3.
I've understodd that I need to load the component and helper manually
in the AppController.
However I get this error-message when trying to load the component
with var $component = array('Session');
Fatal error: Cannot redeclare
What is the problem you are having? If the problem is that your
default layout is being rendered, thus breaking the RSS, then you just
need to call $this-layout = 'rss' or just use the RequestHandler
component: http://book.cakephp.org/view/549/Controller-Code .
On Apr 28, 11:43 pm, aboxy
U then make one are we supposed to just write it all for you
On Apr 29, 11:54 am, hoss7 hoss...@gmail.com wrote:
i need ajax shopping cart with cakephp
Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with
their CakePHP related questions.
You received this
Please do write it for us. And have it slice bread as an extra lol
On 4/29/10, thatsgreat2345 thatsgreat2...@gmail.com wrote:
U then make one are we supposed to just write it all for you
On Apr 29, 11:54 am, hoss7 hoss...@gmail.com wrote:
i need ajax shopping cart with cakephp
Lets keep this civil, people.
Jayesh, I do hope that you consider writing for the bakery or other CakePHP
related resources again. Each contribution that is made by the community is
a valuable addition to the resource base that is already largely community
built. We appreciate every piece of
you need logic to make the form function
this is quite old - may require code to be updated
http://bakery.cakephp.org/articles/view/sphinx-behavior
I found this whilst searching for that (above) - not sure how finished it is
the readme is blank
Have you got the code doubled?? within the app controller?
- S
On 29 April 2010 20:16, Jørn superdup...@gmail.com wrote:
Hi,
i'm having trouble getting sessions to work in 1.3.
I've understodd that I need to load the component and helper manually
in the AppController.
However I get
I was maybe a bit too harsh, but Mr. Wadhwani failed to notice that we
are indeed trying to fix the issues, and that this is not borne out of
arrogance.
I understand that he's pissed off, of course.
And that he's letting out some steam.
So if you look your questions to me you will notice that it
Its public $components, not public $component.
On Apr 29, 2:10 pm, Sam Sherlock sam.sherl...@gmail.com wrote:
Have you got the code doubled?? within the app controller?
- S
On 29 April 2010 20:16, Jørn superdup...@gmail.com wrote:
Hi,
i'm having trouble getting sessions to work in
Could anyone tell me where I went wrong with debugkit? The installation was
straightforward enough that it seemed impossible to screw up.
Anyhow, it returns all the data that would be expected but it also returns a
ton of warnings, ie:
*Warning*: Missing argument 2 for
ta for getting back to me.
1. ok, ta. i missed that bit of migrations.
2. if i try to goto the page the javascript is trying to get, i get a
can't find controller error:
localhost/status/google_analytics/visits/
=
Error: GoogleAnalyticsController could not be found.
Error: Create the class
App::build( array(
'controllers' = array(
DS . join( DS, array( 'parts', 'to', 'your', 'path' ) . DS,
... other paths for controller lookup
),
));
should work for you. I am not sure if you need to set the normal
path as one of the array items or not. Play around and let us
Yeah but if you are going to do that, you might as well just use
plugins, lol.
On Apr 29, 6:38 pm, gremlin abba.bry...@gmail.com wrote:
App::build( array(
'controllers' = array(
DS . join( DS, array( 'parts', 'to', 'your', 'path' ) . DS,
... other paths for controller
Hi, I'm designing travel document application. Here's the process:
A person submits his/her data. Applicant data will be saved in applicants
table.
For those whose data is already approved, the data will be saved in
approved_applicants table.
After saving applicant data to approved_applicants
You may use HtmlHelper-tag()
$this-Html-tag(__('your browser does not support the video tag',
true), array('src' = '/video.ogv', array('controls' = 'controls'));
On Apr 29, 10:03 pm, Phil felipe.ru...@gmail.com wrote:
Hi!
I'm trying to add a video file into my cakephp project using the html5
Rather than walk through your code correcting it, I can give some hints and
point you at the guide - because the answers are all there and it is the best
way of learning.
1) You need to link your models appropriately:
http://book.cakephp.org/view/1039/Associations-Linking-Models-Together
2)
I was answering his question. I don't know what his actual situation
is - perhaps he simplified his scenario when he asked his question.
Also the answer is useful to someone else who might have a legit
reason for wanting an alternate folder structure.
Thanks though, for your useful input.
On Apr
Hi,
I had wanted to have a single signon to phpbb, so i followed
http://www.phpbb.com/kb/article/phpbb3-sessions-integration/ and replaced my
User model/table/controller/etc to Member. Since I had trouble making it
work, I had since commented out the login into phpbb part. But since I
still
Oops, I copied/pasted the wrong link... I followed this
http://bakery.cakephp.org/articles/view/phpbb3-api-bridge
On Fri, Apr 30, 2010 at 11:17 AM, Iqbal Santyaswardan isant...@gmail.comwrote:
Hi,
I had wanted to have a single signon to phpbb, so i followed
i want Auth Component - Users, Groups Permissions for cakephp 1.3
like this code for cakephp 1.2:
http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited
i need powerful code.
Check out the new CakePHP Questions site http://cakeqs.org and help others
What's wrong with the code there - does it break in 1.3? If so, where? For
instance, I can see a '$this-Session-del' which will need to be changed to
'$this-Session-delete'. What errors are you getting?
Jeremy Burns
jeremybu...@me.com
On 30 Apr 2010, at 06:45, hoss7 wrote:
i want Auth
90 matches
Mail list logo