Hello,
Has anyone tried REST webservice with CakePhp?. I tried the tutorial in
bakery, which doesnt work.. I get Object not found error. Am I missing anything
in routes?. I m new to cake. I thought I can just create the files as mentioned
in tutorial and it will work.. but it didnt. Any
Inside #about_desctriptioncontent you can add another div which you
will fade in :)
On Mar 9, 10:39 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
Well it looks like I got it all working. Now I just need to figure out
how to add some kind of effect to it. If anyone has any advice on
that,
You can manually delete the tmp/cache/models/* data.
Are you sure that your table was created with the same DB user that
Cake's App uses?... It could be a permission problem.
On Mar 9, 4:36 pm, Rimoe meiyo...@gmail.com wrote:
Thank you for your answer,
so I have use the (Cache::clear()) in my
I am going to develop a section in a site, where there is no database
operation. Only there will a form and a mail will fire on submit of
the very form. How to design model for this section?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
I am completely new to cakephp. I am having this error message as
following, which I cannot figure out. Anyone please point me to the
right direction please?
When I put in http://localhost/cake/; in my address bar, it gives me
the following error:
hi jsmale, all your requirement probable release , I have a example to
offer you ,please download my attached file , If you don't understand , you
can contact with me through my yahoomail nhathoangvn2...@yahoo.com, we will
trade experience together
2009/3/10 mscdex msc...@gmail.com
On Mar 9,
I've been scouring the manual and this group and the web, and am not
quite understanding what I need to do here, mainly with the naming
convention and such.
I have an organization with chapters and members. Each chapter has a
contact and a treasurer (these can be the same person) that I need to
I tested your data ,it isn't wrong , has many also contain invoked
information between EventSignUp and EventOptionSignUp, please send all your
relevant file to me , I will try test to help you and answer for you as soon
as, if you have yahoomail please add my one,
nhathoangvn2...@yahoo.com.
^^
@Robin, what is your cake version? and how about your mod_rewrite.
-
Best regards !
Giang Son Dat
Mobile: +84 988114164
Email giangson...@gmail.com, giangson...@yahoo.com
On Tue, Mar 10, 2009 at 12:20 AM, Robin madsa...@gmail.com wrote:
I am completely new
I always have it set to 2 on my test system. The page simply doesnt
load. In firefox I get a no data sent error. In IE I get a cant
find page error.
On Mar 10, 6:21 pm, mscdex msc...@gmail.com wrote:
On Mar 9, 1:14 am, Sanfly san...@gmail.com wrote:
Hi All
Ive been trying to get a
Hi bilaliz,
its WAMP server that i have installed on my notebook, the way i
learned to deploy was to simply download cake and copy all files in to
the www folder and i should able to see the default cake index, and
indeed that worked ..
so for example my views are in
Just add in your model:
var $table = false;
That will tell cake that there is no table associated with that model.
On Mar 10, 10:10 am, kaushik kaushikwo...@gmail.com wrote:
I am going to develop a section in a site, where there is no database
operation. Only there will a form and a mail
Thanks nhathoang.
Your solution of defining fields with different variable names
reorganising the data in the controller is a fix to the problem. It's
not the cleanest solution but it works.
On Mar 10, 7:56 pm, nhathoang nhathoang computing1...@gmail.com
wrote:
hi jsmale, all your requirement
Instead of putting here a bunch of code of my own, I'll ask you to
tell me the way you'd manage this:
Robot hasMany Rating
Robot has many other models linked.
Robot has some fields with info.
Rating has id, rating (integer), user_id and created
I want to paginate all robots' fields with their
noone can not help me ?
--
View this message in context:
http://www.nabble.com/Captcha-reload-problem%2C-works-in-ff-not-in-IE-tp17855131p22433313.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~-~--~~~---~--~~
You received this message
On Tue, Mar 10, 2009 at 3:55 AM, boscovgrunenfeld vchi...@gmail.com wrote:
When I bake the views, I get a nice drop-down box for the Members view
to select the chapter (Members belongsTo Chapters via the foreign key
chapter_id), but I'm getting regular text boxes for the treasurer and
contact
Ok I figured this outIt wasn't what I thought at all and is a
stupid error, but by sharing maybe I can prevent this from happening
to someone else.
What happened is I had the model registered in my User Controller like
so:
App::import('Model','Realm');
$Realm = new Realm;
This didn't work.
On Tue, Mar 10, 2009 at 8:09 AM, Vera Childs vchi...@gmail.com wrote:
I rebaked everything, and the code is copied and pasted between the Member
and Chapter models, so I don't know what would cause it to show the
drop-down for one and not the other?
Fixed this one too, but have no clue what
I want to upload an image and a flv file using ActAs Image column
behavior. But it is giving error like that:
copy(/home6/smallbi9/public_html/subdomains/videon/app/webroot/img//
Video/7//videoFile.application/octet-stream) [function.copy]: failed
to open stream: No such file or directory
Hey Paul,
I'm trying this
var $validate = array(
'Role' = array(
'rule' = array('multiple', array('min'=1)),
'message' = 'Select one or more roles'
)
);
And it's not checking to see that at least one box is checked. Any
ideas?
In my case it's:
var
Unfortunately that didn't do the trick... :-(
On Mar 10, 1:42 am, Miles J mileswjohn...@gmail.com wrote:
I use app import and it worked for me:
App::import('Core', 'l10n');
$l10n = new L10n();
$l10n-get($locale);
I also place it in my app controller beforeFilter(). If you are doing
it in
Hi all,
Do you have any idea why my page loads when running on my localhost
are so high? The actual time spent on queries is normally around the
600ms on a page yet it takes sometimes up to 20seconds to completely
finish loading the page.
I do have debug on - and it does seem to rectify this
On Mar 10, 2:25 am, jitka (poLK) slunii...@gmail.com wrote:
I have created two test languages in:
/app/locale/eng/LC_MESSAGES/default.php
/app/locale/fre/LC_MESSAGES/default.php
php extension is reason. CakePHP assumes there plaintext .po (or
preferrable binary .mo) files.
Yeah that
This turned out to be an error in my code, a typo in a variable. Once
I fixed the variable name everything worked great! Cake rocks!
On Mar 9, 4:58 pm, starkey starkey...@gmail.com wrote:
Hello all,
I've seen several articles/posts on this and have had some success
following them,
Hi,
i have a question about cakephp views , i want to have diferent views
using the same function from controller.Is this possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Hi,
I have one controller called SetupController and, inside it, i need to
call one function that is in another controller. but i can' t catch
other controllers inside SetupController to do this call.
I tried use Configure::listObjects, but it just returns the
controller's name, and not the
I believe one way to achieve this is by using:
$this-render()
http://api.cakephp.org/class/app-controller#method-AppControllerrender
from your controller and render the view you want. This would likely
be based on certain conditions based on your previous email. So you
would end up with a case
This is weird: I can successfully change the language with $this-
Session-write('Config.language', 'fr'); in the beforeRender()
function in apps_controller.php
Why does it not work in beforeFilter()?
Does it matter where it's being done?
On Mar 10, 2:09 pm, jakobjp m...@jakobjp.net wrote:
I'm trying to figure out how to create a system that can handle the
following:
Models: user, post, category
Roles: regular, moderator, admin
- User (regular user) can create posts in categories.
- User (regular user) can edit own posts.
- Multiple users can have the role moderator in multiple
which debug level are you running?
you can try http://thechaw.com/debug_kit it gives a break down of how
long various parts took to run
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Oops, I muddled the terminology a bit. Corrected message:
It turned out that my db user did not have access to the cake
database. So it wasn't that Cake couldn't connect to the Mysql (a
stand-alone test script was able to connect just fine), but that Cake
couldn't access the database that I
OK, I finally made it with this 'join' parameter, that works... but
that is not much better than using -query ;-) A little bit better
at least...
I still think there is a bug because I went to the IRC Cake group
yesterday evening and discussed the problem, and someone told me that
I should set
Is it possible to set an ACO on specific rows? As an example, if I
have an Item table, could I have some Groups be able to read Item.43,
while not Item.44? Same goes for other CRUD operations. A lot of the
ACL information I've been seeing suggests that I can do this, but I
haven't seen any
I can't remember ever seeing a definite answer as to why this is or
how to fix it... the popular way seems to be to stop using xampp and
try WAMP instead or some of those other fake-linux setups.
If you are the curious type:
The problem should be with some less common WinXP settings and Cake
Unimaginative standard answers: :)
You can try to see if the task you need performed by the other
controller could be put into a model. Most of the real work should be
done by models.
You can also try to make a Component out of that code you need to
call.
The last resort or a quick and dirty
Hi,
I am really having difficulties getting this to work my app folder is
located in:
D:\Webserver\bcstest\app
And I have been trying to use the schema command in console to create
the ACL tables. However it keeps failing because the Schema could not
be loaded. And I know its because of this:
Hi,
I am really having difficulties getting this to work my app folder is
located in:
D:\Webserver\bcstest\app
And I have been trying to use the schema command in console to create
the ACL tables. However it keeps failing because the Schema could not
be loaded. And I know its because of this:
Hello everybody
I am writing a video sharing web site. I need the user to input video
information, every video has one or more video files, (records of
video_files only contain the path information of the files, files are
uploaded through ftp clients, and the user have to input the path
When I enable persistModel (hoping to gain some performance by caching
models) i get this error:
Object::__openPersistent() [object.--openpersistent]: The script tried
to execute a method or access a property of an incomplete object.
Please ensure that the class definition DetalleReceta of the
No one of these three ways could solve my problem. I can't put inside
models.
Inside AppControllers, i have three interfaces. Each subclass must say
which concrete class that implements interface must be called. But i
just know which concrete class in runtime. So, three setInterfaces was
put
Not to be an ass, but mootools has tons of documentation, examples and
tutorials. You can find lots of information on how you use effects in
the mootools docss. Furthermore if you have more than one element
with the same ID don't expect anything to work properly. In addition
Element.load()
Doing something like this:
$ctrlObject = ClassRegistry::init('MyController');
would get you an instance, only probably not a working one with the
model and components and things.
/Martin
On Mar 10, 5:09 pm, persivo_cunha ricky...@gmail.com wrote:
No one of these three ways could solve my
On Mar 10, 10:02 am, persivo_cunha ricky...@gmail.com wrote:
Hi,
I have one controller called SetupController and, inside it, i need to
call one function that is in another controller. but i can' t catch
other controllers inside SetupController to do this call.
I tried use
hi,
when i set some css rules in the email layout(used when sending email
with cake's email component) they are not applied on the reciepient
email client. How can i set colors(and other css rules) etc in the
email tepmplate?
thanks.
--~--~-~--~~~---~--~~
You
A Google search would be very helpful to you, so long as you also
include the correct version number in your search. Most likely you've
downloaded Cake v1.2, whereas the Bakery article you've mentioned
points to version 1.1 - there are some subtle yet important
differences in how each of these
On Tue, Mar 10, 2009 at 10:07 AM, Alfredo Quiroga-Villamil
laww...@gmail.com wrote:
I believe one way to achieve this is by using:
$this-render()
http://api.cakephp.org/class/app-controller#method-AppControllerrender
from your controller and render the view you want. This would likely
be
After some desperating waste of hours, I've found (¿?) a solution
Instead of paginate the Robot model, I paginate the Rating model
containing Robot:
$this-paginate = array('Rating' =
array('fields' = array('AVG(Rating.rating) AS range_avg',
'Robot.*'),
'conditions' =
any solution?
On Mar 9, 3:32 pm, nhathoang nhathoang computing1...@gmail.com
wrote:
According to me ,your mean use hasmany to get informations of movies and
celebrities with related cast, And you want in [Cast] =
[index]][celebrity_id ] to be replaced [Cast] = [index][celebrity_name],
but
On Tue, Mar 10, 2009 at 1:23 PM, K3 kiril.zvezdako...@gmail.com wrote:
hi,
when i set some css rules in the email layout(used when sending email
with cake's email component) they are not applied on the reciepient
email client. How can i set colors(and other css rules) etc in the
email
Is there anyway I can download a 1.2 alpha version of the cake? I am
trying to upgrade my previous-built 1.2-alpha application to the new
build, somehow lost my backup. Anyone knows where I can download the
earlier versions? Thanks a lot!
--~--~-~--~~~---~--~~
You
On Tue, Mar 10, 2009 at 1:38 AM, mscdex msc...@gmail.com wrote:
If the user is logged in and has a valid session where their ID is
stored, IMHO it's a better idea to leave out the hidden user_id field
and set the $this-data['Profile']['user_id'] manually to the value
stored in the session
Hello,
I'm new to CakePHP and I've been searching a lot to accomplish this
simple task, pass the value of a textbox as an argument in my ajax
link
?php e($form-text('description', array('name'='descbox'))); ?
?php e($ajax-link('SAVE', array('controller'='produits',
'action'='add_desc',
Hello Backers,
Im Stuck with this, how would you implement this:
I made a CustomController wich method test() calls CustomComponent-
getTest()
I made a CustomComponent wich methods are setTest() getTest().
I made a CustomHelper wich method is getTest() wich should call the
Hi everyone,
I am new with cakephp and tried the first examples of cakephp.org
At some point I have to bake the Db Acl tables in the database with
the cake script.
The folder where the script is located is in my Windows system path.
The exact message is: Undefined variable: args in C:\Documents
this is for a listing-per-city type site (real estate etc)
i have three tables
--
states
cities
listings
relationships
state hasMany city
city hasMany listing
city belongsTo state
listing belongsTo city
in my default view i get this error
Does anyone know how to get user variables from the Auth from a different
Table?
[Auth] = Array
(
[User] = Array
(
[id] = 6
[username] = mary
[email] =
[group_id] = 4
We are excited that CakePHP was invited to the DotOrg pavilion for the
MySQL conference, April 20-23, Santa Clara, CA. Gwoo and Mark Story
will be attending and there are two other booth openings that need to
be filled.
So, now we have the first ever CakePHP booth pass give away. All
community
Thats completely against the concept, why on earth are you doing it
that way? Helpers are used for view support, Components are used for
controller support.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
I use XAMPP all the time and mine works extremely well. Can we see
your vhosts?
--~--~-~--~~~---~--~~
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
On Mar 10, 12:29 pm, bäckerlehrling c.fue...@gmail.com wrote:
Now how can i acces the CustomController in the CustomHelper to call
the CustomController's CustomComponent Method getTest()? How would you
do this?
I would do a call to $this-set() in your controller to set a variable
to be used
On Mar 10, 5:13 pm, JamesF usaexportexpe...@gmail.com wrote:
so it is selecting the right tables at first! any ideas guys?
Without knowing what your controller action is doing when it sets the
$listing variable, I would guess you aren't specifying a high enough
'recursive' value or if you are
On Mar 10, 2:24 pm, Robin madsa...@gmail.com wrote:
Is there anyway I can download a 1.2 alpha version of the cake? I am
trying to upgrade my previous-built 1.2-alpha application to the new
build, somehow lost my backup. Anyone knows where I can download the
earlier versions? Thanks a lot!
Is there any other way to redefine database to meet the requirements?
Please help me on this...
On Mar 8, 5:40 pm, Rajesh rajesh.mukk...@gmail.com wrote:
I am working on movie site. Client have movie records in following
structure.
CREATE TABLE IF NOT EXISTS `movies` (
`id`
You have to do it by hands, using find() and beforeAction() on some
actions where you need profile info. Auth doesn't get related data.
On 11 мар, 05:47, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
Does anyone know how to get user variables from the Auth from a different
Table?
Controller: $this-set('controller', $this);
view: $controller-action();
2009/3/11 mscdex msc...@gmail.com
On Mar 10, 12:29 pm, bäckerlehrling c.fue...@gmail.com wrote:
Now how can i acces the CustomController in the CustomHelper to call
the CustomController's CustomComponent Method
I've been searching for the best way to do this for a while and I
agree with Martin now. I really wish cake had a more elegant solution,
but this one is definitely the cleanest and fastest.
Just so it's out there, I extended this idea to take care of the
entire query string (what cake calls
Also not to be an ass. But I have effects working, you are right there
is tons of documentation. I was just checking if anyone had any cool
ideas I hadn't thought of.
I also did get it working just fine with multiple elements of the same
name.
Copy and pasting can lead to a lot of issues with
Thanks for posting all this. I've just started--yesterday--trying to
work out how to go about something similar. I haven't used ACL at all
and I was really confused about row-level access. It looks like I'll
be able to adapt your code for my use. The one big difference is that
I'll need to
Your models is Movie hasMany Cast, Celebrity hasMany Cast dan Cast
belongsTo both of Movie and Celebrity, right?
if you wants show moview on view.ctp on Cast and included celebrity
info, it's simple! you can use contain behavior this is for example:
movies_controller.php : (controller)
function
This is very odd, when i upload my code from my local machine to my
server, and test out the Paginator on the remote server, the URL is
incorrectly rendered for the paginator, page 2 on the remote server.
On localhost, the url for page 2 of my query works properly and
displays this:
Hi Jon,
all three htaccess files are there, but i still have to type index.php
to access, this is how my .htaccess files looks like
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
/IfModule
thanks for helping out
On
Hi!
Id like to choose a default value for this form element et I dont know
how? (exemple: defautl value: 01-01-1980 of Day-Month-YearÉ
echo $form-input('birthdate', array('dateFormat' = 'DMY',
'timeFormat' = 'none', 'minYear' = date('Y') - 100, 'maxYear' = date
('Y') - 6));
thks
hi,
everyone, I want to comment the (Configure::write('Cache.disable', true);)
in my core.php
but if I do it I will get the error:
The requested address *'/'* was not found on this server.
why is it? and what should I do?
I feel mysite is very slow.
Thanks
Rimoe
2009/3/10 Mauricio Morales
73 matches
Mail list logo