I'm trying to create a login system with using two different tables one for
the board administrator othe apar customer and am having a problem because
both logins use by default the Users table and I'm unable to change ..
If they can deem a look at my code
https://github.com/luuckx2/cakephp3-M
Boa tarde,
Sou iniciante em CakePHP e estou a desenvolver um sistema para eu mesmo
utilizar.
O meu problema começou quando eu passei o sistema para um Servidor Web,
hospedado com a HostGator, em uma Hospedagem de Revenda. Quando tento logar
na área administrativa no meu computador usando o Wamp
I'm building and application with cakePHP and I'm trying to achieve
something like a Wordpress blog archive.
Let's imagine that i have this table in my database:
- Posts
- id
- title
- body
- created
- modified
and i want the output something like this:
20
How's it going?
I have a problem with cakePHP, I'm new to it and struggling with it. Let me
pour onto you guys my situation:
I'm developing a system for a University here in Brazil. In this sytem I've
got the following models: - Country; - State; - City; - University; - Unit;
- Class;
Ok. and
feira, 12 de março de 2013 17h15min12s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
>
> Has anyone done an application built in CakePHP and EventSystem to consume
> webhooks ?
>
> My problem it's I don't know how to start it. There are a example app that
> can sh
Has anyone done an application built in CakePHP and EventSystem to consume
webhooks ?
My problem it's I don't know how to start it. There are a example app that
can show me?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received
cket escreveu:
>
> This should do it:
>
> $keys = array_keys(Hash::remove('{n}[check=0]'));
>
> On Wed, Dec 5, 2012 at 11:50 AM, Lucas Simon Rodrigues Magalhaes
> > wrote:
> > Array(
> > [168] => Array
> > (
> > [check] =&g
Array(
[168] => Array
(
[check] => 0
)
[169] => Array
(
[check] => 1
)
[170] => Array
(
[check] => 1
)
[171] => Array
(
[check] => 1
)
[172] => Array
(
[check] => 0
)
);
I try it, $a = Hash::extract($arrayCheckBox
Fatal Error
*Erro: * Call to undefined method
PHPUnit_Framework_AssertionFailedError::getComparisonFailure()
*File:
*/home/lucas/public_html/eventos-backend/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
*Line: * 252
Whats wrong?
--
Like Us on FaceBook https://www.facebook.com
I am using cake2.2
Em terça-feira, 16 de outubro de 2012 11h50min46s UTC-3, MaJerle.Eu
escreveu:
>
> your file is .class ??..and tell us which cake u use
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
>
>
>
> 2012/10/16 Lucas Simon Rodrigues Magalhaes
> >
;A4','fr');
$pdf->pdf->SetDisplayMode('fullpage');
$pdf->writeHTML($content);
$pdf->Output('test.pdf');
}
catch(HTML2PDF_exception $e){
die($e);
}
The error:
Fatal Error*Error: * Class 'HTML2PDF' not found
*Line: * 196
*Notice: * If you want to
And ...
$this->set(compact('games'));
Em quarta-feira, 29 de agosto de 2012 08h40min58s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
>
> change this variable $game = $this->Game->find('all');
> to
> $games = = $this->Game->find('all
change this variable $game = $this->Game->find('all');
to
$games = = $this->Game->find('all');
in IndexsController .
Em quarta-feira, 29 de agosto de 2012 05h08min00s UTC-3, Nareh Tarasyan
escreveu:
>
> Hi people.
> I'm a beginner in CakePHP.
> And I need help.
>
> I try to use loadModel
Uhuhuuulll
Thnx dude!!!
Em sexta-feira, 24 de agosto de 2012 15h11min35s UTC-3, ivnrmc escreveu:
>
> OR
>
> $this->redirect('/customers/view/'.$id);
>
> :-)
>
>
>
> 2012/8/24 Lucas Simon Rodrigues Magalhaes
> >
>
>>
>>
1. //$id = $this->request->data['ProductDetail']['customer_id'];
2.
forget this line comment
$id = $this->request->data['ProductDetail']['customer_id'];
Em sexta-feira, 24 de agosto de 2012 15h01min02s UTC-3, Lucas Simon
Rod
ith $this->redirect($this->referer());
>
>
> 2012/8/24 Lucas Simon Rodrigues Magalhaes
> >
>
>> I doing it:
>>
>> $this->redirect(array('controller'=>'customers','action' => 'view',$id));
>>
>> but d
I doing it:
$this->redirect(array('controller'=>'customers','action' => 'view',$id));
but do not work.
Invalid customer
*Error: * The requested address *'cadastros/admin/customers/view'* was not
found on this server.
--
You received this message because you are subscribed to the Google Grou
k escreveu:
>
>
>
> On Monday, August 13, 2012 8:54:04 PM UTC+7, Lucas Simon Rodrigues
> Magalhaes wrote:
>>
>> I don't understand it. I define the correct names of Model Files and the
>> cake don't recognize the model User? How?
>
>
> you might ne
I don't understand it. I define the correct names of Model Files and the
cake don't recognize the model User? How?
Em segunda-feira, 13 de agosto de 2012 09h41min39s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
>
> I have a model User.php in plugin, look my gist[1
the AppModel instead of User
> model. And so "registerValidate" is being sent directly to the
> database as a query.
>
> Is this model in a plugin? What is the file name? What does the first
> line have? eg.
>
> class User extends Appmodel {
>
> On Fri,
hii guys!!!
I have a error[1] in any save data of my actions in my UserController.
The error is in my function to validate[2] a add[3] user
[1] http://pastebin.com/M3hSWD9k
[2] http://pastebin.com/9Wg1Aujm
[3] http://pastebin.com/rZctnxFX
--
You received this message because you are subs
I'm using this, $view =& ClassRegistry::getObject('view'); in my Helper but
does not work.
I imported App::uses('ClassRegistry', 'Utility');
but nothing ... and my debug( $view =& ClassRegistry::getObject('view'));
always return false
--
Our newest site for the community: CakePHP Video Tutor
hello,
Somebody already used the Sphinx for generating documentation of their
systems in cakePHP?
like a book.cakephp.org?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with
Thaks. Solved
Em terça-feira, 3 de julho de 2012 18h32min58s UTC-3, cricket escreveu:
>
> On Tue, Jul 3, 2012 at 8:31 AM, Lucas Simon Rodrigues Magalhaes
> wrote:
> > The error appear in this line:
> > 'scope' => array('User.status' => Configu
en declaring properties in class
>
> use this in AppController:
>
> public function beforeFilter() {
> parent::beforeFilter();
> $this->Auth->userScope = Configure::read('User.ACTIVE');
> }
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
>
Hello,
I have a little problem in my auth component in cakePHP 2.2.
I set in my bootstrap.php [1] many CONSTANTS,
example,Configure::write('User.ACTIVE', 'A'); and I wanna to use this
constant in my auth component, but when I used
Configure::read('User.ACTIVE'), the cakePHP show-me an error:
> http://cakephp.lighthouseapp.com/projects/42648-cakephp/milestones/139707-220
>
> It is very stable. It's technically in beta, but that doesn't mean much.
>
>
>
>
> On Tue, Jun 26, 2012 at 10:24 AM, Lucas Simon Rodrigues Magalhaes <
> lucass...@gmail.com> wrote:
and the 2.2 stable?
Em terça-feira, 26 de junho de 2012 12h17min41s UTC-3, Justin Edwards
escreveu:
>
> https://github.com/cakephp/cakephp/tree/2.2
> https://github.com/cakephp/cakephp/zipball/2.2
>
>
> On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes <
Hello there!
I have a system in CakePHP 1.2.7, and I wanna migrate to the new version.
So I prefer waiting the new release, than migrate to CakePHP 2.1
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cak
; *
> REST URLs shouldn't contain any verbs, like add, edit, delete, etc, only
> nouns. The verbs are implicit in the method, ie. POST vs PUT vs GET vs
> DELETE, rather than all using POST.
>
> This is an HTTP based API, and there's nothing wrong with that! But just
>
Hello I need to build an application in Webservice to return data for a
particular billing.
I thought about using REST to provide data json / xml instead of nusoap,
but I'm sure how to do it.
First I'm using cakePHP version 1.3, and following the cake book [1].
According to according to the book
Use "type":
Example: Form->create('Users', *array('type' => 'file')*
);?>
Em quinta-feira, 29 de março de 2012 01h22min03s UTC-3, Thiago Silva
escreveu:
>
> Hello,
>
> I'm trying to use MeioUpload 4.0 with CakePHP 2.1, but I'm getting
> this error:
>
> Warning (2): finfo_file(A): failed to
Thks @José Lorenzo
It works.
And i tested also here ?>
On 18 dez, 22:04, Lucas Simon Rodrigues Magalhaes
wrote:
> i don't find in cake book
>
> http://stackoverflow.com/questions/8555607/wich-command-use-in-cakeph...
--
Our newest site for the community: CakePHP Vide
i don't find in cake book
http://stackoverflow.com/questions/8555607/wich-command-use-in-cakephp-2-x-similar-to-dispatcherbaseurl
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
Hi, everyone.
I'm new on cake and i decided to start from de 2.0.2.
And I'm kind of stuck in how users can login in my app.
This are my "Auth files":
AppController
class AppController extends Controller {
public $components = array(
'Session',
'Auth'=>array(
'
Hii,
I have a doubt, how to download multiples files with cake. I have in
my directory webroot/files, four files.
form1.pdf,form2.pdf,form3.pdf,form4.pdf
In my view i have this code:
Formulários
Form-
>create('Formulario',array('target'=>'_blank'));?>
Form->input('Formulario.selecionarFormulario
I like, and used the Komodo-edit free.
look this and setup the configure the cakephp:
http://community.activestate.com/faq/how-setup-and-use-cakephp-komodo
other option, is eclipse-ide
On 24 ago, 23:33, sue wrote:
> Hi all...i'm really new in cakephp...so,could somebody suggest d
> better IDE fo
Hi Jeremy, the data can´t be ordered beacuse it´s a business account
data (extracted from a database view) and i need to show it by created
date with all the debts, payments and the actual balance (is because
of the balance that i can´t let the user to specify some kind of
order).
Lucas.
On 19
to the last page. whatever that
> last page's number is.
> That is the way Controller::paginate works in 1.3
>
>
>
>
>
>
>
> On Mon, Apr 18, 2011 at 3:42 PM, lucas wrote:
> > I can´t do that because the data can´t be ordered. I need it in that
> > w
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/4/18 Jeremy Burns | Class Outfit
>
>
>
>
>
>
>
> > Sort the data in reverse order?
>
> > Jeremy Burns
> > Class Outfit
>
> > jeremybu...@classoutfit.com
> >http://www.classoutfit.com
&g
Hi people, is it possible to set as default the last page of the
paginated data from the controller? Is there an option available to do
this?
thanks in advance!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://a
5 Mrz., 10:45, "rich...@home" wrote:
>
> > I'm with WebbedIT on this one.
>
> > And besides, you can always do something like the following in your
> > controller:
>
> > $data = $this->Article->read(null, $id);
> > $article = $data['Articl
Hi. I've been working with Cake for a while and something always comes
up to my mind when writing a view, which I'll share:
We all know how Cake spits a simple find('first'), right:
Array
(
[ModelName] => Array
(
[id] => 83
[field1] => value1
)
[Ass
Hi all, Triple Smart (http://www.triplesmart.com) is looking for
CakePHP programmers for freelance projects or a full/part-time jpb in
Córdoba, Argentina.
The workplace would be our offices near ciudad universitaria, and you
should also have experience with XHTML/CSS and jQuery, and be open to
lea
Lets say that in an application we have two groups: buyers and
sellers. (In an ACL setup like the cookbook example tutorial).
When the seller add a product, he can see all comments posted by
potential buyers and add images thru the product url (/product/28)
When the seller gives his product url to
t 5:59 AM, Fran Iglesias wrote:
> Hi
>
> El 21/01/2010, a las 23:44, Lucas Loss escribió:
>
>
> 4. Then I've renamed the file database.php.default to database.php;
>> 5. Back to the browser I reloaded the page and noticed a new sentence:
>>
>
> I miss
cakephp on Windows and I believed that it was a Windows problem
because a friend of mine tried the same steps on his machine (Ubuntu) and
didn't get this error.
So I installed Ubuntu and after having everything ready to start studying
cakephp, I got the same problem!
Any ideas on how to solve
dows and I believed that it was a Windows
problem because a friend of mine tried the same steps on his machine
(Ubuntu) and didn't get this error.
So I installed Ubuntu and after having everything ready to start
studying cakephp, I got the same problem!
Any ideas on how to solve this?
C
Hello fellows,
what do you think about putting an Sanitize::clean on the AfterFind of every
Model?
Wouldn't that ensure same security and a lot less code?
What would be the down side?
Regards...
--~--~-~--~~~---~--~~
You received this message because you are sub
Hi, I've been researching a bit with the same pupose but teknoid in
the IRC channel tipped me that unless I was building a complete mass
mailing solution and all the "stuff" that comes with it, it would be
better to hire an existing service.
Then I said what would "stuff" be and here is his respo
or if it is already happening without setting it.
Regards
On Jul 27, 4:13 pm, Jaydeep Dave wrote:
> Hi Lucas,
> I think it blocks the page using "http authentication method" (similar to
> .htpasswd)
>
>
>
> On Mon, Jul 27, 2009 at 10:34 AM, Lucas Costa wrote:
>
nk you all.
Lucas Costa
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email t
Hi all!
I was starting to work with some HABTM relations and I've found the
following problem: Whenever I try to save the relationship between the
models I'm using (subject,teacher) more than one time, cake creates
duplicate entries into the subjects_teachers table.
I've created an unike key so i
//-
I have also seen suggestions for:
$this->Parametername->create( $this->data['Parametername'] );
$this->Parametername->save();
//
i already change that! thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
solved! i don´t know if this is the best way, but assign false to the
ID worked:
$this->data['Parametername']['ParameternameID'] = false;
this is suppose that the create function do this, but it doesn´t for
some reason that i´m not able to see.
--~--~-~--~~~---~--~--
Hi, in my edit method, sometimes i need to update my fields and
sometimes i need to add new ones. I´m trying to use $this->myModel-
>create() to reset the fields when i need to insert a new row, but
nothing happens, i always get the last ID updated... so the foreach is
updating the last row update
Hi Brendon,
Same problem even after modifying the datetime field to Allow Null and
default to Null.
Any ideas?
Thanks.
Lucas
On May 8, 1:57 am, Brendon Kozlowski wrote:
> The `created` field must (1)be a datetime field, (2)NULL must be
> allowed, (3)and default to NULL value. Onc
this are the fragments:
-view:
hidden('collparamIDS',array('value'=>
$paramTestcollparameterID));?>
-edit action:
$this->set('paramTestcollparameterID',
$parameterTestcollparamID);
-html code:
i´m loading all the hidden inputs in the same way, and accessing them
the same way
Hi, i have this problem that is killing me slowly jeje, in my view a
have about 14 or 15 hidden inputs cause i need them in the edit
action. But when i submit the page, one of them is not submitted and
the rest are submitted fine. I checked the html code and looks fine,
so the hidden input is not
Brian, you were right! I thought that when you call a php code inside
a javascript code, it will create a data stream to the server and
execute that part of the php code there... wrong! i wrote inside the
append function the html code that i wanted as you tell me and that
worked fine!!!
thanks f
Hi Brian, thanks for your answer. The matter here is that i can
generate the elements dinamically but i´m not able to generate their
names dinamically, all the new input fields generated has the same
name and same ID... so, i want to to concatenate in the name of the
input field a variable number
Hi people! i´m generating some input fileds dinamically with
jquery...
to generate the input fields i am using this code: $
("#newFormField").append('input('',array
('label'=>'Nombre'));?>');
the problem is that i need to generate the name and the id of the
input using some jquery global varia
Hi gearvOsh,
Unfortunately nothing happens again :(
I tryed with both options (required = true and notEmpty rule) and
nothing happens.
More tips?
Thanks!
On 29 dez 2008, 23:24, gearvOsh wrote:
> You either need to have:
>
> required = true
>
> Or use the notEmpty rule.
>
> http://book.cakephp
Hi gearvOsh,
Unfortunately nothing happens again :(
I tryed with both options (required = true and notEmpty rule) and
nothing happens.
More tips?
Thanks!
On 29 dez 2008, 23:24, gearvOsh wrote:
> You either need to have:
>
> required = true
>
> Or use the notEmpty rule.
>
> http://book.cakephp
Hi guys,
I'm trying to use data validation on my model but I don't find where
is my error.
When I leave a form field empty, nothing happens (no message erros).
But when fill all fields, all data is saved to database.
Any skilled guy could help me?
Below are some pieces of my code. If you need an
try with:
Configure::write('App.base', '');
inside config/core.php
good luck.
On Jul 16, 8:49 am, Adam Royle <[EMAIL PROTECTED]> wrote:
> There should be a .htaccess file in the level above your app folder
> which uses mod_rewrite to forward the request app/webroot/index.php
>
> So if your folder
Hi,
I'm using cakephp with mysql right now, which is really simple also
due to mysql "describe" function that tell cakephp how my tables look.
I know that PostgreSQL lack "describe" function. So when I change my
dbms to PostgreSQL will it mean that I have to specify in some cakephp
configuration
Hi,
I was wondering if there was a simple way to set your own style to
standard paginator element that appears on each page (i mean the line
" Previous | 1 | 2 | 3 | Next").
Can this be done by creating some template file and applying it to
paginator element? Or do I have to modify paginator clas
I'm pretty sure this problem is related to some basic setting, but I
couldn't solve it myself.
A lot examples of valid cakephp templates code use this kind of php
openning tag: http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---
69 matches
Mail list logo