Hi everyone,
I am try to set a RSS parser for my project. And I follow the steps as
follow.
http://www.thinkingphp.org/2006/06/14/cakephp-rss-20-feed-parser-model/
BUT I got an fatal error like this "Fatal error: Call to undefined
function curl_init() in D:\Program
Files\xampp\htdocs\cake\app\we
I had actually deleted the entire app/views/posts directory.
I tried adding $name='Posts' in PostsController, and the problem
remained :(
I had also figured out earlier (before trimming all the code down to
just the scaffold) that $this->Post->save($this->data) in the add()
function in PostsCont
I have thought of all of this before and none of these solutions quite
seems to solve my problem.
I need to be able to recover the id for the category entry in order to
reference various related models to generate the content.
The number of parameters in the url needs to be dynamic and must
cont
Maybe startup is not the best method to set a controller variable in.
Are you sure startup is even being called?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to
Do you still have add.thtml or edit.thtml files in app/views/posts
directory? If so, make sure you delete them. Maybe also try var $name
= 'Posts'; in your PostsController.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I put the code below between head. It works!
For the function doAjaxCall( ), I really don't know where should I put.
So, I just combine the two parts together. Now, I know the logic to do
it.
Thanks.Tim
Have a good Day!!
event('window','load',$ajax->remoteFunction(array("url"=>"/posts/index/",
I'm new to Cake and I've been following the blog tutorial. Everything
seems to work fine as I've been able to view and delete posts.
However, nothing happens when I click 'Save' on the form page for edit
or add post. (I just get the form back.)
I couldn't find any error in my code, so I trimmed
Not all databases support enum, so it is not included in anything
other than basic scaffolding for mysql.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-
This looks fine to me. You can use $this->data instead of
$this->params['data'] if you like, too.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@goog
hi
-routes are like Controller/Action/Param/Param
-the 'index' is the default action
Take your 'Categories' structure and name it articles, so that the route
will be domain.ext/
then use the index() method. feed it with you article name's and convert
them to id to do your article management.
S
Either use cake urls, or absolute urls.
$html->url( "/users/login" );
$html->url( "/img/somepicture.jpg" );
$html->url( "http://www.google.com"; );
$html->url( "#anchor" );
$html->url( "mailto:[EMAIL PROTECTED]" );
etc.
--~--~-~--~~~---~--~~
You received this me
I recently started working with cakephp. I liked the scaffolding, and
the bake.php script. However, one obvious short coming to the bake.php
script is it's failure to handle enum fields in the controller.
What is so strange is that the scaffold script handles enum fields, and
the view protion of
Hey guys.
Thanks all for the help. I think I need to follow grant's advice. At
least I appreciate the general area from which my problems are issuing!
All the best
BN
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hey Time - Thanks for your reply :-). Clutching at straws is better
than clutching at air :p
HmmmI haven't messed around with routes.php, I don't quite get it
yet. But, I am hoping that because all my other redirects are
workingthis one should too ?
Yep, I'm declaring the models a
Code looks alright to my (very) untrained eye. Clutching at straws
here...
What does your routes.php look like... I expect you've checked that
though.
Are you declaring the models in your uses var at the top of the
controller?
Also have you got anything weird going on with the validation in you
Hi Zou,
> Is the Right code for body Tag ?
No, I don't think this will work as it stands.
> But I am not clear about what is the 'window' and 'load'.
The Window object is the highest level js object which corresponds
to the web browser window. The 'load' is the argument that you are
passing
There are several messages floating around without great answers about
Smarty integration and I wanted to let other know about some
developments.
A few days back I broke away from development on a homegrown mvc
framework and shifted to cake (decision was hard but the transition has
been smooth).
Thanks John.
On Oct 31, 12:20 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Oct 31, 2006, at 1:16 PM, AC wrote:
>
>
>
> > I was wondering if Cake has the ability to generate the model, the
> > controller, and all of the views for you when it comes to CRUD. Much
> > like R
Hey all !!
So, I've hit my head against a wall for the last several hours, and
done all the searches I can think of.and, I just cannot think of
any other way of tackling this problem.
I've created a view/controller that do not have a model. Based on a a
choice the user makes, the controller
On Oct 31, 2006, at 1:16 PM, AC wrote:
>
> I was wondering if Cake has the ability to generate the model, the
> controller, and all of the views for you when it comes to CRUD. Much
> like Ruby on Rails. I know that Cake has the "scaffold" option, but
> what I want is base level code generation
I was wondering if Cake has the ability to generate the model, the
controller, and all of the views for you when it comes to CRUD. Much
like Ruby on Rails. I know that Cake has the "scaffold" option, but
what I want is base level code generation for creating production CRUD.
Much like $ ruby sc
Hi, I just have a quick question regarding the best way of doing
smething. I want the username from the Session to be inserted into the
comments table when a user adds a comment. very simple. I can think of
various ways of doing it but not sure what's best. One way I thought of
was to put ..
$thi
Ok, I have made couple of components working well, but this one give me
a error all the time, and I am unable to see what's wrong:
class StockRequestComponent extends Object
{
var $controller = true;
// I have to find a way to have a function here which can receive
parame
I have 2 problems I need help with, but I will post 2 messages.
first: What would be the best way to have an interactive query?
I need to have users able to make a selection in 6 different columns, to
build a query with WHERE this and that (6 this and that..), knowing they
may select 1, or 2,
I have used CakePHP for several months and answered a few posts without
needing to post and I probably don't need to now but I cannot find the
answer.
I have tried setting the recursive var to 2, 3, 4, 5 and no help to my
problem. I have a User model that has a belongsTo a Subarea that
belongsTo
how i must to use path with/without $html->url() use absolute or
relative paths? I mean urls must work in any kind of installations.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
Hi!
Thanks for your reply.
I am using Apache webserver.
Need to configure index.php in the app/webroot/ directory? i.e. to
change
- define ('ROOT', dirname (dirname (dirname (__FILE__;
- define ('APP_DIR', basename (dirname (dirname (__FILE__;
- define ('CAKE_CORE_INCLUDE_PATH', ROOT);
Mixed environment - need mac os x (10.4.8) using dreamweaver to work on
windows development server running cakephp w. microsoft sql server
backend.
Any suggestions?
Thanks,
Thom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
ok, I've thrown something together in the end. don't know if it is the
best method but it works for the time being. maybe someone else might
find it useful, or refine it.
1. search terms entered, search button clicked by user
2. search terms recorded to session
3. "Currently Processing" view outp
Thanks.
I am getting clear about 'S 'and 'A'.
I think I should add a event-onload to the body tag, to do it when the
page is loading and let the divs to load Asynchronous.
I chech the remoteFunction:
Creates JavaScript function for remote AJAX call.
This function creates the javascript needed
Hello bakers
I’ve been thinking about how to cake recognize
my plugins automatic – and adapt my views to the plugins there is active
on the app (Adding menu’s / features )
Does anyone have a good idea on how this
could be done ?
My solution (partly) was something like:
plugi
You might want to think about 'baking' your element instead, if it
doesn't change too regularly:
http://wiki.cakephp.org/tutorials:dynamic-menu
This ought to take the load off your db server.
--~--~-~--~~~---~--~~
You received this message because you are subscr
More information about the error?
From: cake-php@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gayathiri Balachandran
Sent: 31 Oktober 2006 13:43
To: cake-php@googlegroups.com
Subject: Cake PHP Help
Hello!
Please
help me in finding answer to this.
I
am new to Cake P
Is the Right code for body Tag ? But I am not clear about what is the
'window' and 'load' . Is the part of onload event or what ? I can't
find any refrence.
"/posts/load/",
"update"=>"posts_view",
"type"=>"asynchronous"
> More clearly I can't
> figure out how I could set a controller to read category information
> from an url that might have no parameters or 5 or 13 or any other
> number.
The pages controller has these two methods in them:
if (!func_num_args()) {
Hi folks,It hasn't been much time since I've got my first dedicated server. It's running Fedore Core 5 Linux. So far I'm doing well, but I would like to ask for suggestions on books about linux, web server management, server architecture, web server architecture (DNS, etc), in sum, any good materia
John David Anderson (_psychic_) wrote:
> I think a feature like this would entice new users to use their
> scaffolding more than is needed.
>
> If you'd like to start customizing what is shown, and how things are
> presented, it's time to bake.
>
> -- John
John,
What about extensions to Bake? T
In your form, you can have model and field names that don't actually
correspond to your actual model files, or database fields. So, in your
form you could have:
$html->input("Sender/name")
$html->input("Sender/email")
$html->input("Receiver1/name")
$html->input("Receiver1/email")
...
$html->i
On 10/31/06, Eric C Blount <[EMAIL PROTECTED]> wrote:
A really quick search of the group for "routing" came up with many examples, but all you need to do is put something like the following in your /app/config/routes.php:$Route->connect('/articles/:param1', array('controller' => 'yourController', '
On Tue, 31 Oct 2006 02:04:12 -0800
"MicroAngelo" <[EMAIL PROTECTED]> wrote:
>
> Hi Gonçalo,
>
> Although I assume that your actual models aren't really called "Foo"
> and "Bar" and you're just using the classic metasyntactic variables for
> your example, I did want to point out that the Cake co
On 10/29/06, Jon Bennett <[EMAIL PROTECTED]> wrote:
> Having run a mailing list that ran into just such growing pains, I can> suggest splitting up this group into two groups. One group will be for> New Cake Users, aka "newbies," and the other one will be for
> intermediate to advanced users.I think
Hi Gonçalo,
Although I assume that your actual models aren't really called "Foo"
and "Bar" and you're just using the classic metasyntactic variables for
your example, I did want to point out that the Cake convention for join
tables is to go alphabetically, and so the join table should be named
"b
I think you should exemplify your doubt, i'd like to help you bu i
can't understand your problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googl
Hi,
This and the follow up article might help:
www.noswad.me.uk/MiBlog/ACLPart1
There is a plugin that you can download to adminster your acl objects
(there's an online demo to play with also).
HTH,
AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
The cake sea
Ok,
I agree with your scaffolf point of view, i think the bake feature is
just fine for 99% of cases.
regards
jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
the available acl in cake is more like a raw toolset. this is on
purpose so you can implement the acl completly free.
the other side of this freedom is that you need to define your acl ARO
and ACO objects yourself.
i was also looking for a dummi guide :-)
--~--~-~--~~~-
Do the "bit of magic" in another method in the controller which returns the array. Call the method from each action. And if the array is based on data from a specific model, you should probably put the new function in that model.
Eric
On 10/31/06, jamdown <[EMAIL PROTECTED]> wrote:
Hi:I'm new t
Your URL should be http://localhost/cake/notes (I think...without actually seeing your setup). What webserver are you using? If it's not Apache, you might try
http://localhost/cake/index.php/notes (right guys? correct me if I'm wrong).
HTH,
Eric
On 10/31/06, Gayathiri Balachandran <[EMAIL PROTE
A really quick search of the group for "routing" came up with many examples, but all you need to do is put something like the following in your /app/config/routes.php:$Route->connect('/articles/:param1', array('controller' => 'yourController', 'action' => 'yourAction'));
$Route->connect('/articles/
Hi:
I'm new to cake and need a bit of help.
Here's my problem, I have 2 actions, action A and action B. Action A
does a bit of magic and creates an array which is passed to its view.
Now, action B needs to pass that same array to its view as well.
However, action B only needs this array when a l
50 matches
Mail list logo