Hello,
here's a hint Auth Component it's execelent for very simple
sistems ... you will be Reinventing the wheel
Spent some more time with the Auth Component , it even gives you
information about connected users
http://book.cakephp.org/view/1255/AuthComponent-Methods#user-1264
On Jun 11, 6:32
Router::connect(
'/:slug-n-:id',
array('controller' = 'pages', 'action' = 'news_detail'),
array(
'pass' = array('id', 'slug'),
'slug' = '.*',
'id' = '[\d]+'
)
);
is this correct in CakePHP 1.3 ? it generates this error
Warning (2): preg_match() [function.preg-match]:
(
'pass' = array('option'),
'option' = '.*',
)
);
this could be a solution if the web pages was not already indexed in
search engines with - on URL
_ char should be accepted
Is this a bug? or am i missing something here?
On May 25, 11:55 am, PaulMan pho...@gmail.com wrote:
Router
pm, PaulMan pho...@gmail.com wrote:
Thank you both!!!
I used the patch you gave, and used mb_* functions to set string to
lowercase ( i was having problems with chars like Ó and Á )
Martin what do you mean by:
I will let you post the ticket though.
Sorry im not a expert
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î ô û ç
');
results:
�_õ_�_oe_ae_e_oe_ue_a_i_e_o_u_a_e_i_o_u_a_e_i_o_u_c
the first three chars do not work, the first and second are used many
times in Portuguese language...
is this a bug? does anybody have a solution?
best
, anler anle...@gmail.com wrote:
You want to keep the url with your letters as they are? if that is the
case, google by IDNA (International Domain Names ... or something, or
the package Net_IDNA in pear.php.net)
On Feb 10, 1:35 pm, PaulMan pho...@gmail.com wrote:
echo Inflector::slug(' ã õ ï ö
characters. Actually I added
those three to this version if you want the quick fix:
http://bin.cakephp.org/view/1955811171
I will let you post the ticket though.
On Feb 10, 2:02 pm, PaulMan pho...@gmail.com wrote:
hello,
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î
Hello,
Select . Workflow.id as Fa, Workflow.name as Fb ...
How can this be done using the 'fields' parameter
for example
var $belongsTo = array(
'Workflow' = array(
'className' = 'Workflow',
'foreignKey' = 'workflow_id',
I'm looking for the number of rows in Catalog not Product.
$this-Product-Catalog-getNumRows()
On May 29, 8:32 pm, Miles J mileswjohn...@gmail.com wrote:
Why would it be 3, if the rows are 100?
--~--~-~--~~~---~--~~
You received this message because you are
Hello Everybody,
On Product Model
public $hasAndBelongsToMany = array('Category' ,'Catalog');
On Products_Controller
$this-data=$this-Product-find('all',array('conditions'=array
('Product.active'=1),'limit'='100'));
$this-Product-getNumRows()
it returns 100 Products , this is OK
but
Hello,
from brands_controller
with
$queryResult=$this-Brand-Product-Query($query);
it never gets to sap behavior afterFind , but if i use
with
$queryResult=$this-Brand-Product-Find('list');
it works
it there a reason for it? am i missing something?
Best regards,
here some more extra info..
Try Tree Behavior for category-SubCategory-SubCategory ,
and workit all in the same model Category ...
Product Model
public $hasAndBelongsToMany = array('Category');
Category Model
public $hasAndBelongsToMany = array('Product');
public $hasMany = array('SubCategory'=
o.k.
I pulled the trigger hehe..
$this-Brand-Product-Behaviors-Trigger($this-Brand-
Product,afterFind,array('results'=$queryResult,'primary'=true));
thanks,
On May 14, 10:42 am, Jon Bennett jmbenn...@gmail.com wrote:
Hi Paul,
it there a reason for it? am i missing something?
Callbacks
No,
I Tree has unique branches..
A Table for Dining Room , is not a table for a Living Room but i
think if you reverse the order you will get more organized
put
Tables( id:5 ) - Living Room ( id:6 )
Tables( id:5 ) - Dinning Room ( id:7 )
* ids are only examples
and on the
Hello,
This technique is new to me, and i cant make set::combine to work the
way i want...
here is;
I Have
Array
(
[0] = Array
(
[products] = Array
(
[id] = 19430
[code] = 000117
pm, PaulMan pho...@gmail.com wrote:
Hello,
This technique is new to me, and i cant make set::combine to work the
way i want...
here is;
I Have
Array
(
[0] = Array
(
[products] = Array
(
[id] = 19430
You should analize you problem realy good,
I has a similar problem, on a Food Chain Distribution B2b Site and it
worked 5 Stars for me.
Good Luck...
On May 14, 4:28 pm, brian bally.z...@gmail.com wrote:
On Thu, May 14, 2009 at 6:50 AM, PaulMan pho...@gmail.com wrote:
No,
I Tree has
Hello everybody,
I dont know if this helps but ...
I found that is missing some caracters on MAP array , like ã and õ
for the portuguese characters...
is there a reason for this, or cakephp development team just forgot
to include them.???
here is my new version...
$map = array(
Hello everybody,
Is there a way to configure CakePHP NOT to use Pretty Urls?
I'm using the latest version.
Best Regards
PM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
Cake libraries unless you are
developing CakePHP itself.
On Jul 13, 6:51 pm, PaulMan [EMAIL PROTECTED] wrote:
Done.. where's how:
New version of: class Event extends AppModel
{
var $name = 'Event';
var $displayField= 'description';
var $belongsTo=array('Pool
the actual Cake libraries unless you are
developing CakePHP itself.
On Jul 13, 6:51 pm, PaulMan [EMAIL PROTECTED] wrote:
Done.. where's how:
New version of: class Event extends AppModel
{
var $name = 'Event';
var $displayField= 'description';
var $belongsTo=array('Pool
://book.cakephp.org/view/113/code-generation-with-bake
to materialize the scaffold code and start coding the application
logic
On Sun, Jul 13, 2008 at 12:18 PM, PaulMan [EMAIL PROTECTED] wrote:
Hello Everyone,
Using Scaffold,
I Have a Model Event that belongsTo Result.
The Problem is when
the rest or is a
good hack?
On 13 Jul, 17:28, PaulMan [EMAIL PROTECTED] wrr ote:
thank's for the quick reply,
i already had read that articles, but i did no found the solution, the
problem is on the Edit action for events, that's where i want to
filter results, so that the final user can select
23 matches
Mail list logo