-
Posts
902 -
Joined
-
Last visited
-
Days Won
9
Posts posted by doddsey_65
-
-
From the element with the id of "top-search" you could have the classes all span 12 grid places.
col-lg-12 col-md-12 col-sm-12
And then set a style to align everything to the center
text-align:center
You could also specify offsets for the element using classes.
col-sm-offset-4 col-sm-4
That would also center it.
For the bar you would need to remove background and border colors from the relevant element. In this case it is
#top-bar
-
In which post did I complain? I mearly stated that it would take alot more work than I thought to migrate from Silex.
The code in those docs uses the config files to store global variables and, as I said, I cannot do it that way and it has to be from a controller.
-
Going to mark this as solved (it isn't). I was planning on moving all of my codebase over to Symfony but it seems like it would take a lot of effort and disrupt my current workflow.
-
Hi, I have started to create a project using Symfony 2. I need to share data between all controllers.I have added a base controller which extends symfony\controller and each of my controllers extends this base controller
class BaseController extends Controller class HomeController extends BaseController
This base controller will be used for things like assigning global twig variables ( I know I can do this in the config but some of the variables will be gotten from other config files and database ).So I thought I could reference container since Controller is container aware, however it isn't at the point I am using the functions (from constructor).public function __construct ()
I have seen people mention passing the container in as a parameter and mention services but I have had a look and cannot figure it out. All I want to achieve is this:public function __construct (Container $container) { $container->get('twig').addGlobal('foo'); }
-
You can see the values of both POST and GET requests, neither is safer than the other.
-
GET and POST are as secure as each other they are just different methods of sending data. GET sends it in the request header and POST sends it in the request body.
If you really want to send data securely then have a look at SSL (HTTPS) or encrypt your data before sending it.
-
The headers beg to differ.
As long as you are escaping and typecasting the data then there shouldn't be any concerns with this method. However I wouldn't send data that is meant to be secured via this method.
-
I have started to add some development documentation which can be found on the guthub page http://cjmarkham.github.io/asimpleforum/
-
Ah poo, forgot to mention that the site had moved. Mentioned it on another forum but must have forgotten about this one. The new address is http://www.asimpleforum.co.uk/forum/
-
When you learnt to speak, did you learn by forming coherent sentences, or did you learn word by word? You start from the beginning and then learn the best way to go about things.
-
Have a look at the jQuery solution.
-
A few hundred replies since my last post and yet no comments or referrals. Am I missing something here? Or are people just not interested?
-
PHP has moved on but the practice of learning by browsing code and modifying it to learn hasn't. People will eventually move on to things like package control when they are competent enough with the source language. Better to learn one thing at a time than to learn several just to stick to best practices, those practices come with time.
-
If you have categories that have multiple siblings you should have a look at modified preorder tree traversals
-
Although sound advice @trq not everyone is comfortable with that kind of approach. From the looks of the code (and the question) it would seem OP is still learning PHP. Not sure if Composer was around when I started learning but stuff like that would have been over my head and un-comprehensible while I was learning.
-
-
??????? Indeed.
-
is the file "password_compatibility_library.php" being included anywhere?
-
The avatar is a bit distracting but I'll try to get past it.
Try enabling error reporting to see what errors are outputted.
ini_set('display_errors', 'on'); error_reporting(E_ALL);
Add that to the top of the script.
Also you arent inserting the hashed password into the database. You are only inserting $newpassword which is the data that was posted. It also isnt sanitized which leaves you open to sql injection.
-
Just a quick heads up. I have added documentation to the forum in the form of phpDocumentor. This will help those of you wanting to read through the code and understand it a bit more. Or it will do once I have added some comments to my code (never been one for doing this).You can access the docs by clicking on the "Documentation" link on the forum or by going here.The only one that is complete is the small language class located here. From this you will be able to get a general idea of what use this will be.If you want to help with commenting (since its low on my todo list) then you can fork the repo on github, add some comments and then submit a pull request. This would really help (as would some general testing).Thanks
-
Can't do much without the code. But just incase you didn't do something I should have mentioned you need to add the property to the Join class
public $database;
-
You would need to add an instance of database to the Join class scope. A simple way would be
$joinClass->database = $database
and then in the join class you would reference it using
$this->database
-
What isn't working correctly? What are you expecting and what are you getting?
-
Sounds like a good idea. Was there a question?
New forum software
in Beta Test Your Stuff!
Posted