Does the public database is read only from the end user perspective?
If it is you can use MySql views as a model table.
Cake treat views as table.
I think its more easy to maintain read only data this way.
About the data structure it seems you are in the right way.
If you want to take an example
I'm not great with js myself, but happy to give you my thoughts for
whatever they're worth.
Which javascript library are you using (prototype/jQuery)? I find a
lot of people, including myself, don't always rely on the helper
instead preferring to work with their chosen js library direct.
I've
My experience tells me that almost all of your limitations did not
exist even before 1.3
- plugins couldn't access or extend app's models
They could. I did it regularly.
- code in the app couldn't access a plugin's models
They could. But I would not recommend doing it. (IMHO an app should
not
Classic problem.
being inside a aliased folder, like ~myuser you need to edit
your .htaccess file adding a rewrite base. Search and find tons of
threads discussing it in detail. (searching is easy once you know the
right keywords)
Once you got that done Cake should work fine.
On May 10, 6:31
Thanks Paul - looks like exactly what I am looking for. I am using jQuery, by
the way. I'll post back my final results.
Jeremy Burns
jeremybu...@me.com
On 11 May 2010, at 08:03, WebbedIT wrote:
I'm not great with js myself, but happy to give you my thoughts for
whatever they're worth.
I have been scratching my head a bit here and can't find the problem.
$this-Cookie-delete('Auth.User');
...is called on login and logout.
When sometimes the Auth key does not exist in the cookie __values I
get a notice from PHP... but only on my production server. php.ini is
a likely candidate,
Hello fellows, running a test i got the following issue
Notice: Undefined property: ::$Session
Session has been imported and, if I run the application on firefox it works,
running a test no. Is there something else that I need to import in order to
use $Session during the test?
thanks in
hi.. all
i am new to 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 cake-php@googlegroups.com
hello
Can One Tell me that how i add php extension in netbeans
?
Thnks
--
Dilip Godhani
Jr Software Developer, Entourage Solutions
e-mail: di...@entouragesolutions.com
dilip.godh...@gmail.com
Web.: www.entouragesolutions.com
m. 9913822582
Check out the new CakePHP Questions site
hi.. all
i am new to cakePHP.
my table name is : promoters
in this table i have many tables. when i am selecting the element form
the drop down. in the table only storing 0. when i am changing my
option also it is storing 0 only..
this is my. controller code:
function promoter(){
I am certainly not an ajax expert, but should your method not receive
the chosen id from the drop down list?
I ask, because based on the code you have shown, I don't see how the
id gets delivered to your populate_document_select action in your
controller.
Should your action not be defined as:
Look in the CakePHP book at:
http://book.cakephp.org/view/1017/Retrieving-Your-Data
and browse through each section, so that you can find the examples for
DISTINCT, grouping, OR, etc.
Complex find at:
http://book.cakephp.org/view/1017/Retrieving-Your-Data#Complex-Find-Conditions-1030
as well as
Hi all,
I am using Store and StoreType models
class Store extends AppModel {
var $name = 'Store';
var $primaryKey = 'store_id';
var $belongsTo = array(
'Division' = array(
'className' = 'Division',
hi.. all i want edit last row in the table how to do. if possible
send a sample code..
thank
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
Do a find first sorted by id desc, then do a straightforward edit.
Something like should get the last row:
$row = $this-Model-find(
'first',
array(
'order' = array('Model.id DESC')
'recursive' = -1
)
);
Jeremy Burns
jeremybu...@me.com
On
Actually, believe it or not, many of these issues did exist, but
admittedly it was a very long time ago.
For example, it wasn't until late 2007 (Oct./Nov. timeframe if I
remember correctly), that the ability for app code to access plugin
models was introduced into the 1.2 branch through the use
On May 11, 2:12 pm, keymaster ad...@optionosophy.com wrote:
Actually, believe it or not, many of these issues did exist, but
admittedly it was a very long time ago.
For example, it wasn't until late 2007 (Oct./Nov. timeframe if I
remember correctly), that the ability for app code to access
On May 11, 2:25 pm, AD7six andydawso...@gmail.com wrote:
On May 11, 2:12 pm, keymaster ad...@optionosophy.com wrote:
Actually, believe it or not, many of these issues did exist, but
admittedly it was a very long time ago.
For example, it wasn't until late 2007 (Oct./Nov. timeframe
Do you want to edit the last row or the last inserted row?
On Tue, May 11, 2010 at 3:00 PM, Jeremy Burns jeremybu...@me.com wrote:
Do a find first sorted by id desc, then do a straightforward edit.
Something like should get the last row:
$row = $this-Model-find(
'first',
Please Help me I am new for CakePHP and I can not get the solution for the
following problem.
I have got the following error in fckeditor (filemanager) integrated in one
of my sites developed in cakephp. At localhost (offline), everything works
fine, but on my site when it si online, i get the
And how did the SQL statement look like? It should be displayed just
after the error message!
A comment on your database design - if your database is not a legacy
database (somebody else designed it) then it would be better to
conform to CakePHP conventions for the names of the primary keys and
SELECT `Store`.`store_id`, `Store`.`branch_code`,
`Store`.`store_code`, `Store`.`store_name`, `Store`.`store_type_id`,
`Store`.`grm`, `Store`.`lngbranchmanager`, `Store`.`assistant`,
`Store`.`lngconregion`, `Store`.`division_id`,
`Store`.`division_zapop_id`, `Store`.`region_id`,
hello
I am developing my course conclusion work on frameworks for PHP, and
the cake is one of them, but I'm struggling to find material for
research, I'm only a few posts on the net hehe, and the official
manual of the cake.
can someone pass me a book or something to help in research?
Check out
Het idee is om drie ajax links te hebben. Deze drie ajax links linken
naar 1 specifieke element (in dit geval een formulier). Ook is er 1
ajax div waarin de elementen moeten worden gerenderd. Als je op het
eerste linkje klikt, in dit geval: google. Laad hij perfect het
element dat daarbij hoort.
The idea is that I've 3 ajax links and each link is coupled to one
single element (a form). The element will be loaded in one div. Each
time when you click on a different link, the element that is requested
before must be removed and the new one must come in there. So it has
to update the DIV. The
Ahh thank you. Much appreciated!
On May 11, 3:23 am, John Andersen j.andersen...@gmail.com wrote:
In the $this-params there will be a parameter named requested equal
to 1, and one named return equal to 1.
My assumption is that they indicate that it is a requestAction from
within the
As the error says, the table store_types has no column id, which is
expected, as you have defined that the StoreType model has a primary
key named store_type_id!
What is the name of the column which is the primary key in the table
store_types?
Enjoy,
John
On May 11, 4:29 pm, Ambika Kulkarni
@Jeremy: Yes, I was cringing at the length of my post too, but I've
been thinking about this a while and I felt compelled to explain
fully. Thanks for time. It sounds like you got the point perfectly,
and your suggestions are right in line with my thinking. I'm happy :)
I imagine I'll want to use
I think you are reading two posts as one.
I only mentioned using plugins for all visible features except a very
few... nothing about paths.
And to clarify about the app I refer to:
The app is made up of many plugins.. not one common plugin.
There is a lot of common functionality in the main
On May 11, 4:45 pm, Martin Westin martin.westin...@gmail.com wrote:
I think you are reading two posts as one.
If you're replying to me - the comment regarding plugins v app paths
wasn't directed to you. I do and advocate what you describe (thin app,
lots of plugins) ;)
Check out the new
PS additional app paths and plugins don't solve the same problem.
Firstly, thanks for these responses. I appreciate it.
Plugins and Additional paths may not solve the same problem, I agree,
and that's sort of what I am trying to determine, ie. whether I should
keep all my code as additional
On May 11, 5:30 pm, keymaster ad...@optionosophy.com wrote:
PS additional app paths and plugins don't solve the same problem.
Firstly, thanks for these responses. I appreciate it.
Plugins and Additional paths may not solve the same problem, I agree,
and that's sort of what I am trying to
This is getting real interesting. Thanks AD7 and Martin.
You should really have there (or equivalent)
Account extends AppModel {
var $actsAs = array(
// behavior with all public methods/functionality that currently
exist in BaseAccount.
'Cms.Account' = array(...)
)
}
Why is
You have your own web company and website, but couldn't figure out how
to get PHP on Netbeans?
1 - Download the PHP version: http://netbeans.org/downloads/index.html
OR
2 - Open the IDE and go to Tools Plugins and download PHP
-Miles
On May 11, 1:22 am, Dilip Godhani dilip.godh...@gmail.com
Hey folks,
I have two controllers: ConfigurationsController and
FinishedProductsController. Here's the code for the
ConfigurationsController:
?php
class ConfigurationsController extends AppController
{
public function add()
{
Pratically everything that I need helping me develop is in
book.cakephp.org. What exactly do you need for your research?
PS: Outro brasileiro, hehehehe.
On 11 maio, 01:16, alair ala.siste...@gmail.com wrote:
hello
I am developing my course conclusion work on frameworks for PHP, and
the cake
This should do the trick:
public function bla()
{
$lastPost = $this-Post-find('first', array('order' =
array('Post.id DESC'), 'limit' = '1'));
}
Cya!
On 11 maio, 09:42, Andrei Mita andrei.m...@gmail.com wrote:
Do you want to edit the last row or the last inserted row?
On Tue, May
Calvin
Thanks. It worked. I used the RSS layout , that did the trick
On Apr 29, 12:27 pm, calvin cal...@rottenrecords.com wrote:
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 =
Sorry, the code I wrote should be like this, but it still doesn't work
test_ajax.ctp
?
echo $form-create('');
echo
$form-select('document_type_id',array($docTypes),null,array('id'='document'),true);
echo $form-input('document_number', array('id'='docnum'));
Hello,
I am just getting started with Cakephp shell and running into issues.
My cake core library is under path d:/libs/cake My app is setup under
d:/servers/htdocs/myapp
I wrote a test shell under d:/servers/htdocs/myapp/vendor/shells
class ReportShell extends Shell { var $uses =
I *think* Cake does some inflections and expects the variable to be
'finishedProducts'. So...
$this-set('finishedProducts',
$this-Configuration-FinishedProduct-find('list'));
Jeremy Burns
jeremybu...@me.com
On 11 May 2010, at 22:25, Stefano Martins wrote:
Hey folks,
I have two
Just being picky - you don't need limit = 1 if you are doing a find first.
Jeremy Burns
jeremybu...@me.com
On 11 May 2010, at 23:33, Stefano Martins wrote:
This should do the trick:
public function bla()
{
$lastPost = $this-Post-find('first', array('order' =
array('Post.id DESC'),
hi
I want to generate a static html page from ctp.
Moreover, I think I am such with the shell. It is not controller's
action.
how can i do?
thanks!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because
A ctp file is always the final output of a controller action. If it is not
linked with one of your normal controller actions, then make it a page. Pages
are the views linked to the 'pages' controller. Then the URL to view the page
will be http://yoursite.com/pages/view (if your view file is
By the way, the page can be made up of pure html - it does not have to be PHP
at all. The view action in the pages controller can be as simple as:
function view() {
}
This will render your view.ctp file and the static html within it.
Jeremy Burns
jeremybu...@me.com
On 12 May 2010, at 05:13,
In store_types tbl primary key is store_type_id
On Tue, May 11, 2010 at 8:04 PM, John Andersen j.andersen...@gmail.comwrote:
As the error says, the table store_types has no column id, which is
expected, as you have defined that the StoreType model has a primary
key named store_type_id!
In your view file put the below code n check
e($form-select('agencyId',
array(
'empty' = '-All Suppliers-',
$agencies),
null,
array(
Yeah, just discovered it by myself.
But thanks anyway!!!
On 12 maio, 00:57, Jeremy Burns jeremybu...@me.com wrote:
I *think* Cake does some inflections and expects the variable to be
'finishedProducts'. So...
$this-set('finishedProducts',
I suggest you use the Log to write out some debug information, to make
sure that you work with the correct information.
For example in the populate_document_select function I would do
something like this:
[code]
function populate_document_select() {
$this-log($this-data['Document'],
49 matches
Mail list logo