So this means that helpers and components in the base app can also be
used by the plugins? If this is the case, the plugin system is exactly
what I'm looking for. Although I do not understand why it is called
plugin's. I do not see the analogy.
--~--~-~--~~~---~--~---
http://cakebaker.wordpress.com/2006/06/15/writing-a-custom-error-handler/
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscri
things that are common to all plugins should go in the base app.
Each plugin has its own mvc, helpers and components as well.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group,
If I set debug level to 0, "error 404" shows if I input an error URL.
Because there are no matching controllers or actions.
Can we make it redirect to another URL(use default controller or
action) instead of showing "error 404"?
For example, /pages/badaction can be redirected to /pages/index.
--
Okay, great! Cake is looking better and better!
However, I cannot oversee what the differences are (if any) between
"regular" models, views and controllers and those in a plugin. Can they
be intertwined at will? Do you still have the same facilities (using
helpers, components etc.)?
Thanks for t
Try SlimStat. It's great product.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
Plugins: http://manual.cakephp.org/chapter/13
or you could do multiple apps.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubsc
I'm currently considering several MVC PHP frameworks and so far,
CakePHP seems to be the best choice.
However, as I will be using it to create large applications, I was
wondering if it is possible to organisatie Controllers, Models, Views
in subdirectories. Our largest application - which is buil
Can't comment on the best approach, but I would definitely like to be
able to send multipart email, so this thread is of interest.
Regards,
Langdon
Attila wrote:
> So you guys are just sending out either html only email (wiki example)
> or text only emails (matt's example).
>
> How about mim
I wan't to make some fields in the page refresh automatically after the
page loads.
I know how to use $ajax->link and $ajax->observeField. But I don't know
how to implement it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
So you guys are just sending out either html only email (wiki example)
or text only emails (matt's example).
How about mime multipart alternative? The same email in a text version
and in a html version, so that everybody can see it?
I'm porting a nice website to cakephp, and I would like to port
I talked to them and it's possible to see at core
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send
"It needs a table, but doesn't store any data? That doesn't seem to
make sense - I need a little clarification here. "
Sorry for my bad description.
I asked the question because I didn't know how to create a controller
without a model before.
Now I know how to deal with it.
If I don't need model,
Hmm, I was just tracking down a similar problem with
Session->setFlash() messages. Only they were never set into the
Session, whereas all my other session data was saved just fine. After I
changed back to 'php' or 'cake' it worked fine. This happens on my
local server, but not on the online server
The example with setup_controller is just an example of how to do some
basic initalization. The idea is, you can just write a short
controller action to do the initial setup of your ARO/ACO trees, and
the permissions settings. Once you have the initial tree in place, you
can use those same objec
You can set $this->pageTitle in your view too, not just the controller.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe
Yes, as I said before, I'm aware you can use $this->pageTitle in a controller action to set the page's title.What I want to do is set the home page's title. For example, if my site is at
www.mysite.com, and I point my browser to http://www.mysite.com, Cake renders app/views/pages/home.thtml insid
In your controller you can set the title with: $this->pageTitle
$this->pageTitle = 'My Page Title';
In your layout you can access the variable with: $title_for_layout
...
...
[EMAIL PROTECTED] wrote:
> I'm aware you can use $this->pageTitle in a controller action to set
> the page's title.
unless you want the Menu model available in all of your controllers,
I would not put it in the uses array. Both the uses array and the
method I described use references, so they are pretty much the same
in that respect.
As far as MVC, requestAction in a view should be avoided. Elements
br
I'm aware you can use $this->pageTitle in a controller action to set
the page's title. However, I can't find where to set the home page's
title (i.e. the title for app/views/pages/home.thtml).
Does anyone know where to set the home page's title?
--~--~-~--~~~---~--~
I have done the mollio template tutorial and that is the way I want to
go for my first cake app.
http://wiki.cakephp.org/tutorials:building_a_cakephp_site_part_-_2
But I do not understand how to set up templates/routes for other pages
I add to the menu. Can anyone please shed light?
I have tried
Dear team members if you're looking at this thread,
any chance to see the head helper integrated into cake ?
Ryan Ginstrom wrote:
[mailto:cake-php@googlegroups.com] On Behalf Of RosSoft
Thanks to all for using it :)
It's very nice. I integrated it with my form helper, so it
> I a username field and a check to see if it is empty, so my
> html->tagErrorMsg message says "You must fill out username" when they
> don't fill it out, but what if I want to check if username already
> exists? I check to see if that username is in the database, and use
> invalidate() to flag th
> [mailto:[EMAIL PROTECTED] On Behalf Of RosSoft
> Thanks to all for using it :)
It's very nice. I integrated it with my form helper, so it automatically sets
the focus to the first element in the form, or automatically focuses and
selects the first error field if there is one. Very nice and easy
Thanks to all for using it :)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PRO
Cool. That looks good, I hadn't seen it before.On 6/29/06, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote:
The head helper made by rossoft is probably the best way.brandags wrote:
> I don't know if this is the best solution, but I created a variable> called "addHead", which I create in my view (
While you're in the snippet section, don't forget to grab the Util Helper, Head helper make use of it;)Head helper manual by example:
http://rossoft.wordpress.com/2006/03/28/register-head-tags-from-helpers-2/Third comment, important one (rossoft, maybe it should be on the top of the "article") :
I a username field and a check to see if it is empty, so my
html->tagErrorMsg message says "You must fill out username" when they
don't fill it out, but what if I want to check if username already
exists? I check to see if that username is in the database, and use
invalidate() to flag the error me
One thing about your change to my code example gwoo:
Maybe I'm missing something, but here is what I think.
-> Your solution does better for the requestAction without view
scenario
However, what I was talking about, was to *remove* a requestAction call
for the menu and move it to the AppContr
very useful explanations felix and gwoo. Thanks a lot, I'll sleep less
stupid tonight.
gwoo wrote:
> There are a couple of things to keep in mind in this discussion.
> First, if you use full page caching putting a requestAction in and
> element that called a menu controller would be better.
When using scaffolding is it intentional that when you have actions and other variables defined in your controller besides the scaffold variable, that the scaffolding is not executed?
On 6/29/06, gwoo <[EMAIL PROTECTED]> wrote:
check this out: http://cakephp.org/screencasts/view/4
--~--~-
check this out: http://cakephp.org/screencasts/view/4
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group,
OK, I got it working, but whenever I click ANYTHING (edit, add, view)
it says:
Missing controller
You are seeing this error because controller UserController could not
be found.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Nothing is there except:
You are seeing this error because the view
/usr2/home/mc2design.com/htdocs/cake_tutorials/app/views/user/index.thtml
for action index in controller User could not be found.
--~--~-~--~~~---~--~~
You received this message because you are
There are a couple of things to keep in mind in this discussion.
First, if you use full page caching putting a requestAction in and
element that called a menu controller would be better. You can always
use dont cache this Also, as of version
1.2 you will be able to specifically cache cert
if u have a model correponding to the controller, it's all done.
Luke escreveu:
> OK, I did what the manual said to do to use scaffolding. I put var
> $scaffolding inside my controller. Now what?? That manual just sort of
> stops there... what do I do now?
>
>
> >
>
--~--~-~--~~
On Jun 29, 2006, at 1:41 PM, Luke wrote:
>
> OK, I did what the manual said to do to use scaffolding. I put var
> $scaffolding inside my controller. Now what?? That manual just sort of
> stops there... what do I do now?
Check it out using your browser. If you've scaffolded your
WidgetsControl
OK, I did what the manual said to do to use scaffolding. I put var
$scaffolding inside my controller. Now what?? That manual just sort of
stops there... what do I do now?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
try changing domain and expires in setcookie
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send emai
Hi olivvv:
I just modified the AppController from a project I work on right now to
only show the process of setting $menu in every view (unless you set
your controllers var $useMenu to false), so you can use it in your
layout without having to do requestActions:
class AppController extends C
The head helper made by rossoft is probably the best way.
brandags wrote:
> I don't know if this is the best solution, but I created a variable
> called "addHead", which I create in my view (or maybe I created it in
> my app controller...? can't remember..), then use it in the layout.
> Like so:
Hi felix
"
My advice to people who are concerned about performance, is to think
about what they are using requestAction for right now, and to try to
figure out if some of it should be moved to the AppController. This
will always be the better and faster solution if you have something
like a me
It seems that often such question remains quite unanswered, I guess
because there are several ways.
To me the magic is in requestAction(). If you have things you want to
have on every page, then you can use it
in the layout file.
Sergei wrote:
> Hello,
>
> I just started to learn Cake and I hav
I just added usrmgmt to my cake install and all seems to run for the
most part but I am getting a warning and error about invalid columns
'rt' and 'lt'.
Is there an updated permissions table schema that I need?
I checked back through all the revisions and the columns are not in any
of them.
Than
Armando Sosa ha scritto:
> Why the _construct() override? Just add "Visite" to your uses var.
because some controller override the uses var in the appcontroller.
In this way the things works
p.s: you are the guy who make the cakephp graphics? great work!!
i copy your menu :D
--~--~---
I don't know if this is the best solution, but I created a variable
called "addHead", which I create in my view (or maybe I created it in
my app controller...? can't remember..), then use it in the layout.
Like so:
index.thtml:
addHead .= 'This will go in the head section';?>
layout.thtml:
addH
> [mailto:[EMAIL PROTECTED] On Behalf Of Luke
> Say I wanted to include a javascript in certain views. I have the
> javascript saved as an element, but I have it load within the body
> content right now, because I can't figure out a way to make it load in
> the section. Does this make sense? How
I just upgraded from version 1.0.1.2708 to 1.1.5.3148, and found that
one of my ajax links stopped working. When I switched it back to the
old version, it worked again. It may be rare that this scenario occurs,
but I thought I'd point it out to see if it's just something I'm doing
wrong.
In this
OK, I read the chapter on ACL, but one question that arose was this:
For initial setup of the access control list, is it common to have a
setup_controller.php to set up the access control list with the
appropriate actions, objects, etc or would I just have an action in my
users controller called s
Really useful dima. Thanks. What i really want to do with Image is to
represent an image as an object. Like this:
exists()) {
echo '
echo $thumb->toHtml(array('border' => 0));
echo '';
}
?>
Now as a component is no useful because i can only have one instance of
the object (i think).
I
Why the _construct() override? Just add "Visite" to your uses var.
On 6/29/06, bracchetto <[EMAIL PROTECTED]> wrote:
>
> I've resolve:
>
> class AppController extends Controller {
> function __construct() {
> if (!in_array('Visite', $this->uses)) {
> $this->uses[] = 'V
Ok, between this, the wiki and manual things are getting tasty and I
think I'm understanding how to bake better cake... thanks all for the
discussion and feedback.
Previously I was using requestAction to return rendered views from
foreign controllers, by using it in my elements or directly in th
thank you very much John... you've been very helpful! :-D
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this gro
Say I wanted to include a javascript in certain views. I have the
javascript saved as an element, but I have it load within the body
content right now, because I can't figure out a way to make it load in
the section. Does this make sense? How can I make it load in the
head section?
--~--~--
On Jun 29, 2006, at 10:53 AM, Luke wrote:
>
> The explanation on WIKI of how to configure Cake to use the acl
> database implementation is uhh... horrible. Here is what it says:
Don't use the wiki. Its meant for community contribution, and you
can't really complain about it, as its your respo
The explanation on WIKI of how to configure Cake to use the acl
database implementation is uhh... horrible. Here is what it says:
"Choose ACL implementation
TODO: Explain when to use which implementation
TODO: Show configuration for MyACL
To choose between the database-backed dbAcl and MyACL, ed
I've resolve:
class AppController extends Controller {
function __construct() {
if (!in_array('Visite', $this->uses)) {
$this->uses[] = 'Visite';
}
parent::__construct();
}
function beforeFilter(){
vendor('stats');
Cookie are related to controller method ?
I ask this because if I send a cookie in a controller
class generic Controller extends AppController
{
function add_cookie()
{
if(!$_COOKIE['Hi'])
{
setcookie('Hi','true',2147483647);
echo "Cooki
Or you could do something as simple as:
1) When they login, use:
$this->Session->write('loggedIn', true);
2) Then your checkSession() function would be:
function checkSession()
{
if ($this->Session->read('loggedIn') == true)
return true;
else
return false;
}
--~--~--
On Jun 29, 2006, at 9:17 AM, Luke wrote:
>
> I am using a shared hosting environment, so I don't have access to the
> command line. From what I understand, you need access to the command
> line to set up an ACL system for cake. How would I go about this in a
> shared environment?
You'll need to
I am using a shared hosting environment, so I don't have access to the
command line. From what I understand, you need access to the command
line to set up an ACL system for cake. How would I go about this in a
shared environment?
--~--~-~--~~~---~--~~
You received
Oh ok... makes sense. I'm just going to extend the helper with a
function like that then. Thanks guys!
--~--~-~--~~~---~--~~
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@
Hi johnwik,
I think the problem with requestAction is not the dispatching alone.
There is a good bit of things happening, just to name a view:
Dispatcher
Dispatcher does routing
Dispatcher figures out what (Plugin)/Controller/Action is request
Dispatcher loops through all $paths->con
If form_div and content_div are both rendered in the same view, you
could do some conditional logic tricks with $ajax->div and
$ajax->divEnd.
The other thing you could do is have your controller tell the view
which part to render based on whether or not the form validates, and
update the appropri
http://manual.cakephp.org/chapter/6
Have a look in there. Your model can have an infinite number of
associations.
Use aliasing if you want to use the same class.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cak
New bie.
How can I give multiple associations in model ?
Suppose one table may be used for many other different associations.
How will it be handled then? Will separate models be created for each?
Won't the names clash?
--~--~-~--~~~---~--~~
You received this m
Ivan,
I used a beforeSave function in my model to MD5 the password field
before saving the data, and it works well for me.
ivan wrote:
> Hi
>
> I need to save a field encoded md5. Let's say I have user and password,
> so i want to save the user as comes from the view, but, the password
> want to
nice one, ill look out for it
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PRO
It depends on way how You're using requestAction().
If You're using it like:
$this->requestAction('/some/url');
or
$somedata = $this->requestAction('/some/url');
then it is supposed to be quite fast, as target controller's action is
not rendered. Off course there is new dispatch process for every
Hi all!
just some notes for those who tried CakeX package in past:
- CakeX project was approved at CakeForge
http://cakeforge.org/projects/cakex/
- package and it's snippets no longer exists at CakeForge (too many
dirty hacks in it's code)
- current code is muchmuch better integrated to CakePHP
With the same version of cake and apache 2.0 && php4 and 5 ... no
problem ... perhaps a bug with apache 2 version :/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send emai
Hi!
I am also using actionRequest to render several different controllers
from within a main controller and I have noticed that the dispatcher is
called for each call to a controller. I haven't done any real testing
yet so I'm not sure about the performance.
Is there a way to reuse the Dispatcher
AD7six,
> if (!preg_match(VALID_MD5, $password))
> {
> $this->data['Member']['password'] =
> md5($password); } return true;
> }
But what if your plaintext password looks like a valid MD5 string?
Myself and quite a few friends do this fo
Thanks,
I've already managed this myself. Just created special controller with
view which uses existing model.
AD7six, I think elements and components are not very suitable for my
task, right?
S.
--~--~-~--~~~---~--~~
You received this message because you are s
Hi.
I have a question about multiple div updates with ajax. I have an action
that processes a form. The page has two divs: 'content_div' and
'form_div'. What i want to do is update only 'form_div' if there are any
validation errors (to display them) and update both of them if no
validation errors
man i'd pay this guy $50 just to piss off
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email t
Depending on what you want Sergi, there is also:
3) Use elements and components. The wiki isn't always up to date
(always better to check the manual first), but see
http://wiki.cakephp.org/tutorials:blog_tutorial_-_2#adding_a_recent_post_element_to_another_page
Cheers,
AD7six
--~--~-~
Hi all,
Funny, was discussing this only yesterday with someone.
A snippet of code that will ensure that you don't md5 the md5 of your
password, and keep the logic in the model.
// Stick this in bootstrap
define('VALID_MD5', '/^[a-fA-F0-9]{32}$/i');
data['Member']['password'])?$this->data['Mem
hi sergei
there are several solutions to do that.
as far as I know, the two more convenient solutions are :
(1) using requestAction, with which you can call any action of any
controller from any other page (including a "static" Page controlled
by the default PagesController).
(2) create some othe
yes.. but the check i want to do in the app_controller.
class AppController extends Controller {
function beforeFilter(){
if (!cookie_exists()){
/*load the informationl*/
/*save*/
}
}
}
--~--~-~--~~~---~--~~
You received this message be
You mean there was a question in there ;)?
AD7six
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, sen
bracchetto ha scritto:
> i've put the code to read some information about user in the
> beforeFilter method in the AppController class.
>
> now i've this problem, i want to save this info in a table.
> but i want to save it only if the cookie is empty.
> how can i use a model only for if this c
i've put the code to read some information about user in the
beforeFilter method in the AppController class.
now i've this problem, i want to save this info in a table.
but i want to save it only if the cookie is empty.
how can i use a model only for if this condition is true?
--~--~-~
83 matches
Mail list logo