Showing 7 of 1,697 result(s)
…CookieJar by default) is returned instead. When not being used to return a CookieJar instance, the cookie function makes a call to the make method on an instance of the CookieJar (which is resolved using the application container) using all...
…. If $append is set to true , the output will be appended at the end of the file. appendOutputTo($location) Send the task output to the given file location. This is a helper method that calls sendOutputTo with a value of true supplied to the...
…y bit of code! What we are doing with it though is creating a class called Triangle . The triangle class appears to have three functions: setBase(float b) , setHeight(float h) and area() . But wait! We are talking about a class here. Looking at...
…ue of an item in an array or an object property using dot notation. It accepts a reference to a $target array or object; the $key (array key or object property name) of the data to set and the $value to be set. It also defines an optional...
…call and __callStatic methods that we can take advantage of to achieve our goals. The complete code for our new Hasher will look like this: We could create a facade for the Hasher , but is just another layer of indirection that is not needed in...
…sing the yield and section features. The yield tag will let us define a named section of our template that we can set the contents of later. The section tag allows us to set the contents that should render. One thing to note with the Antlers...
…o modify the hosts file on a modern Windows machine, you will need to open a plain text editor in Administrator mode. I strongly suggest Notepad for this task. From the Start menu, find Notepad and right-click on it. You will see an option that...