I think for admin functionality and consistency with the general
thrust of cakePHP you should consider the admin model that is implicit
in CakePHP itself. (check the manual, under configuration or
controller.) Your Admin_method() code can even choose a specific
layout and view by changing its own
There are two simple ways to handle shared views. One is to simply
specify the $this-view property within the handling methods.
The other is to redirect from one method to another, with a specific
flag. For instance, say you have a class Foo_controller with a view
rss($edition) method and you
I would look also on the Yahoo UI class libarary. You can set a
CakePHP Ajax page to generate a JSON model and feed that into an Ajax
datagrid class.
Depending on your project, you need also to evaluate efficiency both
in speed and bandwidth. For instance if speed was the only concern, we
might
You might also find the routing documentation in the manual
illuminating.
I solve much of this by creating a Home_controller ; Home_controller-
uses = FALSE, and all the view stubs I want are in the views/home/
directory.
For instance the site root '/' is mapped to '/home' via routing, and
You ultimately cannot directly display MS word inside a web page.
You can allow users to download a MS word page, or within word,
translate it into PDF or HTML formats which are viewable in a browser.
--~--~-~--~~~---~--~~
You received this message because you
There are two projects in the manual on the cakephp.org site:
* Setting up a user login system
* Setting up a blog
There are other examples of first day CakePHP at IBM.com; do a web
search for IBM CakePHP for those.
Given your questions, the first tutorial might help the most; for
displaying
Its likely that you will have to do a lot of work to get any calendar
to display your desired result.
The phpCalendar code is a good place to work but no calendar will
compute repetitions. You will have to create code to get the events
which could possibly occur during the month being displayed.
It better; PHP already doesn't Support PHP 4 so when 6 comes out,
5's days are numbered.
Unless we just do an end zone and all revert to PHP 3 ... :D
On Dec 19, 7:38 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On Dec 19, 2007 8:38 AM, Stefan [EMAIL PROTECTED] wrote:
I guess the real
I would suggest that the easiest solution is to hand code a radio
element and feed it parameters for $fieldname (such as 'Users.gender')
and $options (array('M' = 'Male', 'F' = 'Female')); If the $form
class is not handling things as you would like you may find the
quickest solution is to just be
I am setting up Ubuntu for the first time to serve as a LAMP test
environment for CakePHP development and things are not behaving as I
think they should.
I have set up a simple default layout
html
head
title?php echo $title_for_layout?/title
link rel=shortcut icon href=favicon.ico
Also, according to phpinfo()'s apache data, mod_rewrite is on
--~--~-~--~~~---~--~~
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
I have two tables, Items and Item Types. The Scaffolding for the
edit view is not displaying item type options.
I have traced the error into the fieldTypes() method: the key for the
option cluster is not matching the key output by the findAll method.
It seems to expect the data to have the
I found the error myself -- a bad name value in the ItemType model
class. sorry...
--~--~-~--~~~---~--~~
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
I want to add duplicate to the scaffolding of my site; while I can
of course envision a wholly seperate action for duplicate, I have to
think that someone with more familiarity with Cake could help me
Tweak the existing views to repurpose them for inserting a duplicate
record with the same values
('belongsTo' = array(...)));
This affects both $this-Company-Logo and $this-Company-Map, since
they are the same model.
Still, this really wasn't thought out and might be down to my bad
design in the first place - I was only experimenting.
On 26 Jul, 20:09, bingomanatee [EMAIL PROTECTED] wrote
this.
--
Pablo Viojo
[EMAIL PROTECTED]://pviojo.net
On 7/27/07, bingomanatee [EMAIL PROTECTED] wrote:
I want to add duplicate to the scaffolding of my site; while I can
of course envision a wholly seperate action for duplicate, I have to
think that someone with more familiarity
I might work that through -- actually I worked through the index
template and added a Copy link.
http://www.wonderlandlabs.com/modules/wiwimod/index.php?page=CakeDupe
as to the borderlineosity -- its a pretty common way to moprh new
records: pick a row that is like the new one you want,
True but the convenience to the end users are also a useful metric of
an application's efficiency. especially when (as in my case) they are
also a developer :D
On Jul 27, 12:39 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
On 7/27/07, bingomanatee [EMAIL PROTECTED] wrote
I wasn't saying that it is a feature that each and every application
should and must have -- just a useful modification to know about. When
I've fear-proofed my solution I'll pop it into a bakery article.
On Jul 27, 1:23 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
On 7/27/07, bingomanatee [EMAIL
The opportunity for caching model objects as singletons in the
ClasssRepository exists; is there any reason why this should NOT be
done? Can this create any conflicts that might sabotage your code?
--~--~-~--~~~---~--~~
You received this message because you are
In Cake, are model objects supposed to be used like singletons --
stored in the classRegistry and reused between contexts? Is there any
hazards implicit in recycling a single model object between contexts?
--~--~-~--~~~---~--~~
You received this message because
I think the point here is, why not create a standard primary key? If
you ever want manual control over the join table it is expedient; It
is a database SAP and there is no healthy or clear reason to deviate
from it. (because you can is not a reason.)
On Jul 23, 7:54 am, rtanz [EMAIL PROTECTED]
Simple question: how do you save a HABTM association? do you have to
cretae a model for the joining table or can you do if from one of the
two related model classes?
i.e., if I have a table TableA and a TableB and in TableA's model
class I've created a HABTM association through tableC (=
23 matches
Mail list logo